home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIStaticPanels.xh < prev    next >
Text File  |  1996-05-01  |  170KB  |  5,727 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIStaticPanels.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIVisualSeparator_xh
  11. #define SOM_HIVisualSeparator_xh
  12.  
  13. class HIVisualSeparator;
  14.  
  15. #define HIVisualSeparator_MajorVersion 0
  16. #define HIVisualSeparator_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <HIStaticPanelTypes.h>
  22.  
  23. /* C++ SOM defs */
  24. #include <somcls.xh>
  25. #include <somcm.xh>
  26.  
  27. /* C++ parent defs */
  28. #ifndef SOM_HIPanel_xh
  29. #include <HIPanels.xh>
  30. #endif
  31.  
  32. #ifndef HIVisualSeparator_API
  33. #define HIVisualSeparator_API
  34. /*
  35.  * -- The Class API
  36.  */
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. class SOMClass;
  42. class SOMObject;
  43. class HIWindow;
  44. class HIEmbeddingPanel;
  45.  
  46. /*
  47.  * End of user-defined types.
  48.  */
  49.  
  50. #ifdef OLDIBMSOMAPISUPPORT
  51. #define HIVisualSeparatorCClassData HIVisualSeparatorClassData
  52. #define HIVisualSeparatorNewClass(major,minor) somNewVersionedClassReference(HIVisualSeparator,major,minor)
  53. #endif
  54.  
  55. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  56. #define HIVisualSeparatorMetaClass SOMClass
  57.  
  58. #if PRAGMA_ALIGN_SUPPORTED
  59. #  pragma options align=power
  60. #endif
  61.  
  62. /* The API to the HIVisualSeparator class object, and the methods it introduces. */
  63. SOMEXTERN struct HIVisualSeparatorClassDataStructure {
  64. #ifdef OLDIBMSOMAPISUPPORT
  65.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  66. #else
  67.     long zero;
  68. #endif
  69.     somStaticClassInfo *sci;
  70.     somDToken        instanceDataToken;
  71.     long reserved [3];
  72.     somMToken InitVisualSeparator;
  73.     somMToken GetSeparatorType;
  74.     somMToken SetSeparatorType;
  75. } SOMDLINK HIVisualSeparatorClassData;
  76.  
  77. #if PRAGMA_ALIGN_SUPPORTED
  78. #  pragma options align=reset
  79. #endif
  80.  
  81. #if !defined(HIVisualSeparator_Class_Source) && !defined(SOM_Module_histaticpanels_Source)
  82. #if PRAGMA_IMPORT_SUPPORTED
  83. #pragma import list HIVisualSeparatorClassData
  84. #endif
  85. #endif
  86.  
  87.  
  88. /*
  89.  * -- Typedefs for HIVisualSeparator Method Procedures
  90.  */
  91. SOMEXTERN {
  92. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_InitVisualSeparator)(HIVisualSeparator *somSelf, Environment *ev,
  93.         RefLabel* identifier,
  94.         HIWindow* window,
  95.         Rect* bounds,
  96.         HIVisualSeparatorType separatorType);
  97. typedef HIVisualSeparatorType   (* SOMLINK somTD_HIVisualSeparator_GetSeparatorType)(HIVisualSeparator *somSelf, Environment *ev);
  98. typedef void   (* SOMLINK somTD_HIVisualSeparator_SetSeparatorType)(HIVisualSeparator *somSelf, Environment *ev,
  99.         HIVisualSeparatorType separatorType);
  100.  
  101. /*
  102.  * -- Typedefs for Inherited Methods
  103.  */
  104. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIVisualSeparator_GetEmbeddingParent)(HIVisualSeparator *somSelf, Environment *ev);
  105. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_InitPanel)(HIVisualSeparator *somSelf, Environment *ev,
  106.         RefLabel* identifier,
  107.         HIWindow* window,
  108.         Rect* bounds);
  109. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_RegisterInterestInAppleEvent)(HIVisualSeparator *somSelf, Environment *ev,
  110.         AEHandlerTableRef table,
  111.         AEEventClass eventClass,
  112.         AEEventID eventID,
  113.         HIEventRoutingType eventRouting);
  114. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_HasValidContent)(HIVisualSeparator *somSelf, Environment *ev);
  115. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_GetDeepCollectionItemData)(HIVisualSeparator *somSelf, Environment *ev,
  116.         CollectionTag tag,
  117.         SInt32 id,
  118.         ByteCount sizeAllowed,
  119.         ByteCount* sizeReturned,
  120.         void* itemData);
  121. typedef HIWindow*   (* SOMLINK somTD_HIVisualSeparator_GetWindow)(HIVisualSeparator *somSelf, Environment *ev);
  122. typedef CGrafPtr   (* SOMLINK somTD_HIVisualSeparator_GetPort)(HIVisualSeparator *somSelf, Environment *ev);
  123. typedef void   (* SOMLINK somTD_HIVisualSeparator_GetRefLabel)(HIVisualSeparator *somSelf, Environment *ev,
  124.         RefLabel* identifier);
  125. typedef Collection   (* SOMLINK somTD_HIVisualSeparator_GetCollection)(HIVisualSeparator *somSelf, Environment *ev);
  126. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_Init)(HIVisualSeparator *somSelf, Environment *ev,
  127.         RefLabel* identifier,
  128.         Rect* boundingRect);
  129. typedef void   (* SOMLINK somTD_HIVisualSeparator_Terminate)(HIVisualSeparator *somSelf, Environment *ev);
  130. typedef HIObject*   (* SOMLINK somTD_HIVisualSeparator_Clone)(HIVisualSeparator *somSelf, Environment *ev);
  131. typedef void   (* SOMLINK somTD_HIVisualSeparator_Release)(HIVisualSeparator *somSelf, Environment *ev);
  132. typedef ItemCount   (* SOMLINK somTD_HIVisualSeparator_GetOwnerCount)(HIVisualSeparator *somSelf, Environment *ev);
  133. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_InitFromAERecord)(HIVisualSeparator *somSelf, Environment *ev,
  134.         AESubDesc* baseInitializerData,
  135.         AESubDesc* initializerDataForClass,
  136.         HIAERecordDataFormat dataFormat);
  137. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_WriteToAERecord)(HIVisualSeparator *somSelf, Environment *ev,
  138.         AERecord* dataForSubclass,
  139.         AERecord* objectData,
  140.         HIAERecordDataFormat dataFormat);
  141. typedef void   (* SOMLINK somTD_HIVisualSeparator_CalculateOptimalSize)(HIVisualSeparator *somSelf, Environment *ev,
  142.         SInt16* optimalWidth,
  143.         SInt16* optimalHeight);
  144. typedef void   (* SOMLINK somTD_HIVisualSeparator_GetBoundingRect)(HIVisualSeparator *somSelf, Environment *ev,
  145.         HICoordinateSystem coordinate,
  146.         Rect* boundingRect);
  147. typedef void   (* SOMLINK somTD_HIVisualSeparator_SetBoundingRect)(HIVisualSeparator *somSelf, Environment *ev,
  148.         HICoordinateSystem coordinate,
  149.         Rect* newBoundingRect);
  150. typedef void   (* SOMLINK somTD_HIVisualSeparator_SetPosition)(HIVisualSeparator *somSelf, Environment *ev,
  151.         HICoordinateSystem coordinate,
  152.         Point* newPosition);
  153. typedef void   (* SOMLINK somTD_HIVisualSeparator_SetSize)(HIVisualSeparator *somSelf, Environment *ev,
  154.         SInt16 width,
  155.         SInt16 height);
  156. typedef void   (* SOMLINK somTD_HIVisualSeparator_GetUpdateRect)(HIVisualSeparator *somSelf, Environment *ev,
  157.         HICoordinateSystem coordinate,
  158.         Rect* updateRect);
  159. typedef void   (* SOMLINK somTD_HIVisualSeparator_Enable)(HIVisualSeparator *somSelf, Environment *ev);
  160. typedef void   (* SOMLINK somTD_HIVisualSeparator_Disable)(HIVisualSeparator *somSelf, Environment *ev);
  161. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_IsEnabled)(HIVisualSeparator *somSelf, Environment *ev);
  162. typedef void   (* SOMLINK somTD_HIVisualSeparator_Show)(HIVisualSeparator *somSelf, Environment *ev);
  163. typedef void   (* SOMLINK somTD_HIVisualSeparator_Hide)(HIVisualSeparator *somSelf, Environment *ev);
  164. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_IsVisible)(HIVisualSeparator *somSelf, Environment *ev);
  165. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_HandleAppleEvent)(HIVisualSeparator *somSelf, Environment *ev,
  166.         AEEventClass eventClass,
  167.         AEEventID eventID,
  168.         AppleEvent* theEvent,
  169.         AppleEvent* reply,
  170.         AEHandlerTableRef handlerTableRef);
  171. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_HandleActivate)(HIVisualSeparator *somSelf, Environment *ev,
  172.         AppleEvent* theEvent,
  173.         AppleEvent* reply,
  174.         AEHandlerTableRef handlerTableRef);
  175. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_HandleDeactivate)(HIVisualSeparator *somSelf, Environment *ev,
  176.         AppleEvent* theEvent,
  177.         AppleEvent* reply,
  178.         AEHandlerTableRef handlerTableRef);
  179. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_HandleNavigation)(HIVisualSeparator *somSelf, Environment *ev,
  180.         SInt8 key,
  181.         SInt8 keyCode,
  182.         EventModifiers modifiers,
  183.         AppleEvent* theEvent,
  184.         AppleEvent* reply,
  185.         AEHandlerTableRef handlerTableRef);
  186. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_HandleMouseDownInContent)(HIVisualSeparator *somSelf, Environment *ev,
  187.         Point* portLocalWhere,
  188.         EventModifiers modifiers,
  189.         AppleEvent* theEvent,
  190.         AppleEvent* reply,
  191.         AEHandlerTableRef handlerTableRef);
  192. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_HandleMouseMovedInContent)(HIVisualSeparator *somSelf, Environment *ev,
  193.         Point* portLocalWhere,
  194.         EventModifiers modifiers,
  195.         AppleEvent* theEvent,
  196.         AppleEvent* reply,
  197.         AEHandlerTableRef handlerTableRef);
  198. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_HandleMouseStoppedMovingInContent)(HIVisualSeparator *somSelf, Environment *ev,
  199.         Point* portLocalWhere,
  200.         EventModifiers modifiers,
  201.         AppleEvent* theEvent,
  202.         AppleEvent* reply,
  203.         AEHandlerTableRef handlerTableRef);
  204. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_HandleMouseUpInContent)(HIVisualSeparator *somSelf, Environment *ev,
  205.         Point* portLocalWhere,
  206.         EventModifiers modifiers,
  207.         AppleEvent* theEvent,
  208.         AppleEvent* reply,
  209.         AEHandlerTableRef handlerTableRef);
  210. typedef void   (* SOMLINK somTD_HIVisualSeparator_TakeUserInputFocus)(HIVisualSeparator *somSelf, Environment *ev);
  211. typedef void   (* SOMLINK somTD_HIVisualSeparator_ReleaseUserInputFocus)(HIVisualSeparator *somSelf, Environment *ev);
  212. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_HasUserInputFocus)(HIVisualSeparator *somSelf, Environment *ev);
  213. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_CanReleaseUserInputFocus)(HIVisualSeparator *somSelf, Environment *ev);
  214. typedef void   (* SOMLINK somTD_HIVisualSeparator_SetUserInputFocusFlags)(HIVisualSeparator *somSelf, Environment *ev,
  215.         HIUserInputFocusFlags flags);
  216. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIVisualSeparator_GetUserInputFocusFlags)(HIVisualSeparator *somSelf, Environment *ev);
  217. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_SetTitle)(HIVisualSeparator *somSelf, Environment *ev,
  218.         ConstHIImageRef title,
  219.         HIAdoptionFlags disposalAdoptionFlags);
  220. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_GetTitle)(HIVisualSeparator *somSelf, Environment *ev,
  221.         HIImageRef* title);
  222. typedef void   (* SOMLINK somTD_HIVisualSeparator_Draw)(HIVisualSeparator *somSelf, Environment *ev,
  223.         CGrafPtr whichPort,
  224.         RgnHandle drawRgn);
  225. typedef void   (* SOMLINK somTD_HIVisualSeparator_Erase)(HIVisualSeparator *somSelf, Environment *ev,
  226.         CGrafPtr whichPort,
  227.         RgnHandle eraseRgn);
  228. typedef void   (* SOMLINK somTD_HIVisualSeparator_Invalidate)(HIVisualSeparator *somSelf, Environment *ev);
  229. typedef HIDrawingMode   (* SOMLINK somTD_HIVisualSeparator_GetDrawingMode)(HIVisualSeparator *somSelf, Environment *ev);
  230. typedef void   (* SOMLINK somTD_HIVisualSeparator_SetDrawingMode)(HIVisualSeparator *somSelf, Environment *ev,
  231.         HIDrawingMode drawingMode);
  232. typedef void   (* SOMLINK somTD_HIVisualSeparator_SetBackgroundPattern)(HIVisualSeparator *somSelf, Environment *ev,
  233.         PixPatHandle backgroundPattern);
  234. typedef PixPatHandle   (* SOMLINK somTD_HIVisualSeparator_GetBackgroundPattern)(HIVisualSeparator *somSelf, Environment *ev);
  235. typedef void   (* SOMLINK somTD_HIVisualSeparator_Cut)(HIVisualSeparator *somSelf, Environment *ev);
  236. typedef void   (* SOMLINK somTD_HIVisualSeparator_Copy)(HIVisualSeparator *somSelf, Environment *ev);
  237. typedef void   (* SOMLINK somTD_HIVisualSeparator_Paste)(HIVisualSeparator *somSelf, Environment *ev);
  238. typedef void   (* SOMLINK somTD_HIVisualSeparator_Clear)(HIVisualSeparator *somSelf, Environment *ev);
  239. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIVisualSeparator_GetClipboardSupportFlags)(HIVisualSeparator *somSelf, Environment *ev);
  240. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_AddStateChangeCallback)(HIVisualSeparator *somSelf, Environment *ev,
  241.         HIStateChangeCallbackProcPtr changedStateCallback,
  242.         HIStateChangeCallbackRef* newCallbackRef);
  243. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_RemoveStateChangeCallback)(HIVisualSeparator *somSelf, Environment *ev,
  244.         HIStateChangeCallbackRef callbackRefToRemove);
  245. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_GetHIObjectFromRefLabel)(Environment *ev,
  246.         RefLabel* identifier,
  247.         ItemCount requestedObjects,
  248.         ItemCount* totalObjects,
  249.         HIObject** theObjects);
  250. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_GetNewHIObject)(Environment *ev,
  251.         AESubDesc* objectInitializer,
  252.         HIObject** newObject);
  253. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_GetNewHIObjectFromResource)(Environment *ev,
  254.         ResID objectInitializerResourceID,
  255.         HIObject** newObject);
  256. typedef void   (* SOMLINK somTD_HIVisualSeparator_DrawContent)(HIVisualSeparator *somSelf, Environment *ev,
  257.         CGrafPtr whichPort,
  258.         RgnHandle drawRgn);
  259. typedef void   (* SOMLINK somTD_HIVisualSeparator_EraseContent)(HIVisualSeparator *somSelf, Environment *ev,
  260.         CGrafPtr whichPort,
  261.         RgnHandle regionToErase);
  262. typedef void   (* SOMLINK somTD_HIVisualSeparator_TranslatePoint)(HIVisualSeparator *somSelf, Environment *ev,
  263.         HICoordinateSystem translateFrom,
  264.         HICoordinateSystem translateTo,
  265.         Point* sourcePoint,
  266.         Point* translatedPoint);
  267. typedef void   (* SOMLINK somTD_HIVisualSeparator_TranslateRect)(HIVisualSeparator *somSelf, Environment *ev,
  268.         HICoordinateSystem translateFrom,
  269.         HICoordinateSystem translateTo,
  270.         Rect* sourceRect,
  271.         Rect* translatedRect);
  272. typedef void   (* SOMLINK somTD_HIVisualSeparator_StateChanged)(HIVisualSeparator *somSelf, Environment *ev,
  273.         HIStateChangeCodeCreator selectorCreator,
  274.         HIStateChangeCode changedCode);
  275. typedef void   (* SOMLINK somTD_HIVisualSeparator_SetClipboardSupportFlags)(HIVisualSeparator *somSelf, Environment *ev,
  276.         HIClipboardSupportFlags flags);
  277. typedef OSStatus   (* SOMLINK somTD_HIVisualSeparator_Verify)(HIVisualSeparator *somSelf, Environment *ev);
  278. typedef void   (* SOMLINK somTD_HIVisualSeparator_somInit)(HIVisualSeparator *somSelf);
  279. typedef void   (* SOMLINK somTD_HIVisualSeparator_somUninit)(HIVisualSeparator *somSelf);
  280. typedef SOMObject*   (* SOMLINK somTD_HIVisualSeparator_somDuplicateReference)(HIVisualSeparator *somSelf);
  281. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_somCompareReference)(HIVisualSeparator *somSelf,
  282.         SOMObject* anObject);
  283. typedef SOMObject*   (* SOMLINK somTD_HIVisualSeparator_somRelease)(HIVisualSeparator *somSelf);
  284. typedef void   (* SOMLINK somTD_HIVisualSeparator_somFree)(HIVisualSeparator *somSelf);
  285. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_somCanDelete)(HIVisualSeparator *somSelf);
  286. typedef SOMClass*   (* SOMLINK somTD_HIVisualSeparator_somGetClass)(HIVisualSeparator *somSelf);
  287. typedef corbastring   (* SOMLINK somTD_HIVisualSeparator_somGetClassName)(HIVisualSeparator *somSelf);
  288. typedef long   (* SOMLINK somTD_HIVisualSeparator_somGetSize)(HIVisualSeparator *somSelf);
  289. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_somIsA)(HIVisualSeparator *somSelf,
  290.         SOMClass* aClassObj);
  291. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_somRespondsTo)(HIVisualSeparator *somSelf,
  292.         somId mId);
  293. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_somIsInstanceOf)(HIVisualSeparator *somSelf,
  294.         SOMClass* aClassObj);
  295. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_somDispatch)(HIVisualSeparator *somSelf,
  296.         somToken* retValue,
  297.         somId methodId,
  298.         va_list ap);
  299. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_somClassDispatch)(HIVisualSeparator *somSelf,
  300.         SOMClass* clsObj,
  301.         somToken* retValue,
  302.         somId methodId,
  303.         va_list ap);
  304. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_somCastObj)(HIVisualSeparator *somSelf,
  305.         SOMClass* cls);
  306. typedef boolean   (* SOMLINK somTD_HIVisualSeparator_somResetObj)(HIVisualSeparator *somSelf);
  307. typedef SOMObject*   (* SOMLINK somTD_HIVisualSeparator_somPrintSelf)(HIVisualSeparator *somSelf);
  308. typedef void   (* SOMLINK somTD_HIVisualSeparator_somDumpSelf)(HIVisualSeparator *somSelf,
  309.         long level);
  310. typedef void   (* SOMLINK somTD_HIVisualSeparator_somDumpSelfInt)(HIVisualSeparator *somSelf,
  311.         long level);
  312. }
  313.  
  314. #endif /* HIVisualSeparator_API */
  315.  
  316.  
  317. /*
  318.  * -- This emitter treats Method Tokens as Thunks by default.
  319.  * -- Use the sc modifier "nothunks" to change this default
  320.  */
  321. #undef somresolve_
  322. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  323.  
  324. /*
  325.  * -- The C++ Wrapper Class for HIVisualSeparator
  326.  */
  327. class HIVisualSeparator : public HIPanel
  328. {
  329. public:
  330.  
  331. // HIVisualSeparator::new registers use of the class object, and then uses somNew
  332. // to allocate memory and load the object method table pointer. 
  333. void *operator new(size_t size)
  334. {
  335.     SOM_IgnoreWarning(size);
  336.     // Allocate memory using the default allocator for HIVisualSeparator, and
  337.     // clear mem & set method table pointer, call basic initialization
  338.     return (void*) somNewObject(HIVisualSeparator);
  339. }
  340.  
  341. // HIVisualSeparator::delete uses the default deallocator for the object's class.
  342. void operator delete(void * obj)
  343. {
  344.     if (obj) {
  345.         SOM_Resolve(obj,SOMObject,somFree)
  346.            ( (SOMObject*) obj );
  347.     }
  348. }
  349.  
  350. /* method: InitVisualSeparator */
  351. OSStatus   InitVisualSeparator(Environment *ev,
  352.         RefLabel* identifier,
  353.         HIWindow* window,
  354.         Rect* bounds,
  355.         HIVisualSeparatorType separatorType)
  356. {
  357.    return SOM_ResolveD(this,HIVisualSeparator,HIVisualSeparator,InitVisualSeparator)
  358.     (this,ev,identifier,window,bounds,separatorType);
  359. }
  360.  
  361. /* method: GetSeparatorType */
  362. HIVisualSeparatorType   GetSeparatorType(Environment *ev)
  363. {
  364.    return SOM_ResolveD(this,HIVisualSeparator,HIVisualSeparator,GetSeparatorType)
  365.     (this,ev);
  366. }
  367.  
  368. /* method: SetSeparatorType */
  369. void   SetSeparatorType(Environment *ev,
  370.         HIVisualSeparatorType separatorType)
  371. {
  372.    SOM_ResolveD(this,HIVisualSeparator,HIVisualSeparator,SetSeparatorType)
  373.     (this,ev,separatorType);
  374. }
  375.  
  376.  
  377. /*
  378.  * -- Inherited methods
  379.  */
  380. /* method: GetEmbeddingParent */
  381. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  382. {
  383.    return SOM_ResolveD(this,HIVisualSeparator,HIPanel,GetEmbeddingParent)
  384.     (this,ev);
  385. }
  386.  
  387. /* method: InitPanel */
  388. OSStatus   InitPanel(Environment *ev,
  389.         RefLabel* identifier,
  390.         HIWindow* window,
  391.         Rect* bounds)
  392. {
  393.    return SOM_ResolveD(this,HIVisualSeparator,HIPanel,InitPanel)
  394.     (this,ev,identifier,window,bounds);
  395. }
  396.  
  397. /* method: RegisterInterestInAppleEvent */
  398. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  399.         AEHandlerTableRef table,
  400.         AEEventClass eventClass,
  401.         AEEventID eventID,
  402.         HIEventRoutingType eventRouting)
  403. {
  404.    return SOM_ResolveD(this,HIVisualSeparator,HIPanel,RegisterInterestInAppleEvent)
  405.     (this,ev,table,eventClass,eventID,eventRouting);
  406. }
  407.  
  408. /* method: HasValidContent */
  409. boolean   HasValidContent(Environment *ev)
  410. {
  411.    return SOM_ResolveD(this,HIVisualSeparator,HIPanel,HasValidContent)
  412.     (this,ev);
  413. }
  414.  
  415. /* method: GetDeepCollectionItemData */
  416. OSStatus   GetDeepCollectionItemData(Environment *ev,
  417.         CollectionTag tag,
  418.         SInt32 id,
  419.         ByteCount sizeAllowed,
  420.         ByteCount* sizeReturned,
  421.         void* itemData)
  422. {
  423.    return SOM_ResolveD(this,HIVisualSeparator,HIPanel,GetDeepCollectionItemData)
  424.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  425. }
  426.  
  427. /* method: GetWindow */
  428. HIWindow*   GetWindow(Environment *ev)
  429. {
  430.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,GetWindow)
  431.     (this,ev);
  432. }
  433.  
  434. /* method: GetPort */
  435. CGrafPtr   GetPort(Environment *ev)
  436. {
  437.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,GetPort)
  438.     (this,ev);
  439. }
  440.  
  441. /* method: GetRefLabel */
  442. void   GetRefLabel(Environment *ev,
  443.         RefLabel* identifier)
  444. {
  445.    SOM_ResolveD(this,HIVisualSeparator,HIObject,GetRefLabel)
  446.     (this,ev,identifier);
  447. }
  448.  
  449. /* method: GetCollection */
  450. Collection   GetCollection(Environment *ev)
  451. {
  452.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,GetCollection)
  453.     (this,ev);
  454. }
  455.  
  456. /* method: Init */
  457. OSStatus   Init(Environment *ev,
  458.         RefLabel* identifier,
  459.         Rect* boundingRect)
  460. {
  461.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,Init)
  462.     (this,ev,identifier,boundingRect);
  463. }
  464.  
  465. /* method: Terminate */
  466. void   Terminate(Environment *ev)
  467. {
  468.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Terminate)
  469.     (this,ev);
  470. }
  471.  
  472. /* method: Clone */
  473. HIObject*   Clone(Environment *ev)
  474. {
  475.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,Clone)
  476.     (this,ev);
  477. }
  478.  
  479. /* method: Release */
  480. void   Release(Environment *ev)
  481. {
  482.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Release)
  483.     (this,ev);
  484. }
  485.  
  486. /* method: GetOwnerCount */
  487. ItemCount   GetOwnerCount(Environment *ev)
  488. {
  489.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,GetOwnerCount)
  490.     (this,ev);
  491. }
  492.  
  493. /* method: InitFromAERecord */
  494. OSStatus   InitFromAERecord(Environment *ev,
  495.         AESubDesc* baseInitializerData,
  496.         AESubDesc* initializerDataForClass,
  497.         HIAERecordDataFormat dataFormat)
  498. {
  499.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,InitFromAERecord)
  500.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  501. }
  502.  
  503. /* method: WriteToAERecord */
  504. OSStatus   WriteToAERecord(Environment *ev,
  505.         AERecord* dataForSubclass,
  506.         AERecord* objectData,
  507.         HIAERecordDataFormat dataFormat)
  508. {
  509.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,WriteToAERecord)
  510.     (this,ev,dataForSubclass,objectData,dataFormat);
  511. }
  512.  
  513. /* method: CalculateOptimalSize */
  514. void   CalculateOptimalSize(Environment *ev,
  515.         SInt16* optimalWidth,
  516.         SInt16* optimalHeight)
  517. {
  518.    SOM_ResolveD(this,HIVisualSeparator,HIObject,CalculateOptimalSize)
  519.     (this,ev,optimalWidth,optimalHeight);
  520. }
  521.  
  522. /* method: GetBoundingRect */
  523. void   GetBoundingRect(Environment *ev,
  524.         HICoordinateSystem coordinate,
  525.         Rect* boundingRect)
  526. {
  527.    SOM_ResolveD(this,HIVisualSeparator,HIObject,GetBoundingRect)
  528.     (this,ev,coordinate,boundingRect);
  529. }
  530.  
  531. /* method: SetBoundingRect */
  532. void   SetBoundingRect(Environment *ev,
  533.         HICoordinateSystem coordinate,
  534.         Rect* newBoundingRect)
  535. {
  536.    SOM_ResolveD(this,HIVisualSeparator,HIObject,SetBoundingRect)
  537.     (this,ev,coordinate,newBoundingRect);
  538. }
  539.  
  540. /* method: SetPosition */
  541. void   SetPosition(Environment *ev,
  542.         HICoordinateSystem coordinate,
  543.         Point* newPosition)
  544. {
  545.    SOM_ResolveD(this,HIVisualSeparator,HIObject,SetPosition)
  546.     (this,ev,coordinate,newPosition);
  547. }
  548.  
  549. /* method: SetSize */
  550. void   SetSize(Environment *ev,
  551.         SInt16 width,
  552.         SInt16 height)
  553. {
  554.    SOM_ResolveD(this,HIVisualSeparator,HIObject,SetSize)
  555.     (this,ev,width,height);
  556. }
  557.  
  558. /* method: GetUpdateRect */
  559. void   GetUpdateRect(Environment *ev,
  560.         HICoordinateSystem coordinate,
  561.         Rect* updateRect)
  562. {
  563.    SOM_ResolveD(this,HIVisualSeparator,HIObject,GetUpdateRect)
  564.     (this,ev,coordinate,updateRect);
  565. }
  566.  
  567. /* method: Enable */
  568. void   Enable(Environment *ev)
  569. {
  570.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Enable)
  571.     (this,ev);
  572. }
  573.  
  574. /* method: Disable */
  575. void   Disable(Environment *ev)
  576. {
  577.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Disable)
  578.     (this,ev);
  579. }
  580.  
  581. /* method: IsEnabled */
  582. boolean   IsEnabled(Environment *ev)
  583. {
  584.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,IsEnabled)
  585.     (this,ev);
  586. }
  587.  
  588. /* method: Show */
  589. void   Show(Environment *ev)
  590. {
  591.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Show)
  592.     (this,ev);
  593. }
  594.  
  595. /* method: Hide */
  596. void   Hide(Environment *ev)
  597. {
  598.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Hide)
  599.     (this,ev);
  600. }
  601.  
  602. /* method: IsVisible */
  603. boolean   IsVisible(Environment *ev)
  604. {
  605.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,IsVisible)
  606.     (this,ev);
  607. }
  608.  
  609. /* method: HandleAppleEvent */
  610. OSStatus   HandleAppleEvent(Environment *ev,
  611.         AEEventClass eventClass,
  612.         AEEventID eventID,
  613.         AppleEvent* theEvent,
  614.         AppleEvent* reply,
  615.         AEHandlerTableRef handlerTableRef)
  616. {
  617.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,HandleAppleEvent)
  618.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  619. }
  620.  
  621. /* method: HandleActivate */
  622. OSStatus   HandleActivate(Environment *ev,
  623.         AppleEvent* theEvent,
  624.         AppleEvent* reply,
  625.         AEHandlerTableRef handlerTableRef)
  626. {
  627.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,HandleActivate)
  628.     (this,ev,theEvent,reply,handlerTableRef);
  629. }
  630.  
  631. /* method: HandleDeactivate */
  632. OSStatus   HandleDeactivate(Environment *ev,
  633.         AppleEvent* theEvent,
  634.         AppleEvent* reply,
  635.         AEHandlerTableRef handlerTableRef)
  636. {
  637.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,HandleDeactivate)
  638.     (this,ev,theEvent,reply,handlerTableRef);
  639. }
  640.  
  641. /* method: HandleNavigation */
  642. OSStatus   HandleNavigation(Environment *ev,
  643.         SInt8 key,
  644.         SInt8 keyCode,
  645.         EventModifiers modifiers,
  646.         AppleEvent* theEvent,
  647.         AppleEvent* reply,
  648.         AEHandlerTableRef handlerTableRef)
  649. {
  650.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,HandleNavigation)
  651.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  652. }
  653.  
  654. /* method: HandleMouseDownInContent */
  655. OSStatus   HandleMouseDownInContent(Environment *ev,
  656.         Point* portLocalWhere,
  657.         EventModifiers modifiers,
  658.         AppleEvent* theEvent,
  659.         AppleEvent* reply,
  660.         AEHandlerTableRef handlerTableRef)
  661. {
  662.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,HandleMouseDownInContent)
  663.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  664. }
  665.  
  666. /* method: HandleMouseMovedInContent */
  667. OSStatus   HandleMouseMovedInContent(Environment *ev,
  668.         Point* portLocalWhere,
  669.         EventModifiers modifiers,
  670.         AppleEvent* theEvent,
  671.         AppleEvent* reply,
  672.         AEHandlerTableRef handlerTableRef)
  673. {
  674.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,HandleMouseMovedInContent)
  675.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  676. }
  677.  
  678. /* method: HandleMouseStoppedMovingInContent */
  679. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  680.         Point* portLocalWhere,
  681.         EventModifiers modifiers,
  682.         AppleEvent* theEvent,
  683.         AppleEvent* reply,
  684.         AEHandlerTableRef handlerTableRef)
  685. {
  686.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,HandleMouseStoppedMovingInContent)
  687.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  688. }
  689.  
  690. /* method: HandleMouseUpInContent */
  691. OSStatus   HandleMouseUpInContent(Environment *ev,
  692.         Point* portLocalWhere,
  693.         EventModifiers modifiers,
  694.         AppleEvent* theEvent,
  695.         AppleEvent* reply,
  696.         AEHandlerTableRef handlerTableRef)
  697. {
  698.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,HandleMouseUpInContent)
  699.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  700. }
  701.  
  702. /* method: TakeUserInputFocus */
  703. void   TakeUserInputFocus(Environment *ev)
  704. {
  705.    SOM_ResolveD(this,HIVisualSeparator,HIObject,TakeUserInputFocus)
  706.     (this,ev);
  707. }
  708.  
  709. /* method: ReleaseUserInputFocus */
  710. void   ReleaseUserInputFocus(Environment *ev)
  711. {
  712.    SOM_ResolveD(this,HIVisualSeparator,HIObject,ReleaseUserInputFocus)
  713.     (this,ev);
  714. }
  715.  
  716. /* method: HasUserInputFocus */
  717. boolean   HasUserInputFocus(Environment *ev)
  718. {
  719.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,HasUserInputFocus)
  720.     (this,ev);
  721. }
  722.  
  723. /* method: CanReleaseUserInputFocus */
  724. boolean   CanReleaseUserInputFocus(Environment *ev)
  725. {
  726.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,CanReleaseUserInputFocus)
  727.     (this,ev);
  728. }
  729.  
  730. /* method: SetUserInputFocusFlags */
  731. void   SetUserInputFocusFlags(Environment *ev,
  732.         HIUserInputFocusFlags flags)
  733. {
  734.    SOM_ResolveD(this,HIVisualSeparator,HIObject,SetUserInputFocusFlags)
  735.     (this,ev,flags);
  736. }
  737.  
  738. /* method: GetUserInputFocusFlags */
  739. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  740. {
  741.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,GetUserInputFocusFlags)
  742.     (this,ev);
  743. }
  744.  
  745. /* method: SetTitle */
  746. OSStatus   SetTitle(Environment *ev,
  747.         ConstHIImageRef title,
  748.         HIAdoptionFlags disposalAdoptionFlags)
  749. {
  750.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,SetTitle)
  751.     (this,ev,title,disposalAdoptionFlags);
  752. }
  753.  
  754. /* method: GetTitle */
  755. OSStatus   GetTitle(Environment *ev,
  756.         HIImageRef* title)
  757. {
  758.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,GetTitle)
  759.     (this,ev,title);
  760. }
  761.  
  762. /* method: Draw */
  763. void   Draw(Environment *ev,
  764.         CGrafPtr whichPort,
  765.         RgnHandle drawRgn)
  766. {
  767.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Draw)
  768.     (this,ev,whichPort,drawRgn);
  769. }
  770.  
  771. /* method: Erase */
  772. void   Erase(Environment *ev,
  773.         CGrafPtr whichPort,
  774.         RgnHandle eraseRgn)
  775. {
  776.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Erase)
  777.     (this,ev,whichPort,eraseRgn);
  778. }
  779.  
  780. /* method: Invalidate */
  781. void   Invalidate(Environment *ev)
  782. {
  783.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Invalidate)
  784.     (this,ev);
  785. }
  786.  
  787. /* method: GetDrawingMode */
  788. HIDrawingMode   GetDrawingMode(Environment *ev)
  789. {
  790.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,GetDrawingMode)
  791.     (this,ev);
  792. }
  793.  
  794. /* method: SetDrawingMode */
  795. void   SetDrawingMode(Environment *ev,
  796.         HIDrawingMode drawingMode)
  797. {
  798.    SOM_ResolveD(this,HIVisualSeparator,HIObject,SetDrawingMode)
  799.     (this,ev,drawingMode);
  800. }
  801.  
  802. /* method: SetBackgroundPattern */
  803. void   SetBackgroundPattern(Environment *ev,
  804.         PixPatHandle backgroundPattern)
  805. {
  806.    SOM_ResolveD(this,HIVisualSeparator,HIObject,SetBackgroundPattern)
  807.     (this,ev,backgroundPattern);
  808. }
  809.  
  810. /* method: GetBackgroundPattern */
  811. PixPatHandle   GetBackgroundPattern(Environment *ev)
  812. {
  813.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,GetBackgroundPattern)
  814.     (this,ev);
  815. }
  816.  
  817. /* method: Cut */
  818. void   Cut(Environment *ev)
  819. {
  820.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Cut)
  821.     (this,ev);
  822. }
  823.  
  824. /* method: Copy */
  825. void   Copy(Environment *ev)
  826. {
  827.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Copy)
  828.     (this,ev);
  829. }
  830.  
  831. /* method: Paste */
  832. void   Paste(Environment *ev)
  833. {
  834.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Paste)
  835.     (this,ev);
  836. }
  837.  
  838. /* method: Clear */
  839. void   Clear(Environment *ev)
  840. {
  841.    SOM_ResolveD(this,HIVisualSeparator,HIObject,Clear)
  842.     (this,ev);
  843. }
  844.  
  845. /* method: GetClipboardSupportFlags */
  846. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  847. {
  848.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,GetClipboardSupportFlags)
  849.     (this,ev);
  850. }
  851.  
  852. /* method: AddStateChangeCallback */
  853. OSStatus   AddStateChangeCallback(Environment *ev,
  854.         HIStateChangeCallbackProcPtr changedStateCallback,
  855.         HIStateChangeCallbackRef* newCallbackRef)
  856. {
  857.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,AddStateChangeCallback)
  858.     (this,ev,changedStateCallback,newCallbackRef);
  859. }
  860.  
  861. /* method: RemoveStateChangeCallback */
  862. OSStatus   RemoveStateChangeCallback(Environment *ev,
  863.         HIStateChangeCallbackRef callbackRefToRemove)
  864. {
  865.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,RemoveStateChangeCallback)
  866.     (this,ev,callbackRefToRemove);
  867. }
  868.  
  869. /* noself procedure: GetHIObjectFromRefLabel */
  870. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  871.         RefLabel* identifier,
  872.         ItemCount requestedObjects,
  873.         ItemCount* totalObjects,
  874.         HIObject** theObjects)
  875. {
  876. return ((somTD_HIVisualSeparator_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  877.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  878. }
  879.  
  880. /* noself procedure: GetNewHIObject */
  881. static OSStatus   GetNewHIObject(Environment *ev,
  882.         AESubDesc* objectInitializer,
  883.         HIObject** newObject)
  884. {
  885. return ((somTD_HIVisualSeparator_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  886.     (ev,objectInitializer,newObject);
  887. }
  888.  
  889. /* noself procedure: GetNewHIObjectFromResource */
  890. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  891.         ResID objectInitializerResourceID,
  892.         HIObject** newObject)
  893. {
  894. return ((somTD_HIVisualSeparator_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  895.     (ev,objectInitializerResourceID,newObject);
  896. }
  897.  
  898. /* method: DrawContent */
  899. void   DrawContent(Environment *ev,
  900.         CGrafPtr whichPort,
  901.         RgnHandle drawRgn)
  902. {
  903.    SOM_ResolveD(this,HIVisualSeparator,HIObject,DrawContent)
  904.     (this,ev,whichPort,drawRgn);
  905. }
  906.  
  907. /* method: EraseContent */
  908. void   EraseContent(Environment *ev,
  909.         CGrafPtr whichPort,
  910.         RgnHandle regionToErase)
  911. {
  912.    SOM_ResolveD(this,HIVisualSeparator,HIObject,EraseContent)
  913.     (this,ev,whichPort,regionToErase);
  914. }
  915.  
  916. /* method: TranslatePoint */
  917. void   TranslatePoint(Environment *ev,
  918.         HICoordinateSystem translateFrom,
  919.         HICoordinateSystem translateTo,
  920.         Point* sourcePoint,
  921.         Point* translatedPoint)
  922. {
  923.    SOM_ResolveD(this,HIVisualSeparator,HIObject,TranslatePoint)
  924.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  925. }
  926.  
  927. /* method: TranslateRect */
  928. void   TranslateRect(Environment *ev,
  929.         HICoordinateSystem translateFrom,
  930.         HICoordinateSystem translateTo,
  931.         Rect* sourceRect,
  932.         Rect* translatedRect)
  933. {
  934.    SOM_ResolveD(this,HIVisualSeparator,HIObject,TranslateRect)
  935.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  936. }
  937.  
  938. /* method: StateChanged */
  939. void   StateChanged(Environment *ev,
  940.         HIStateChangeCodeCreator selectorCreator,
  941.         HIStateChangeCode changedCode)
  942. {
  943.    SOM_ResolveD(this,HIVisualSeparator,HIObject,StateChanged)
  944.     (this,ev,selectorCreator,changedCode);
  945. }
  946.  
  947. /* method: SetClipboardSupportFlags */
  948. void   SetClipboardSupportFlags(Environment *ev,
  949.         HIClipboardSupportFlags flags)
  950. {
  951.    SOM_ResolveD(this,HIVisualSeparator,HIObject,SetClipboardSupportFlags)
  952.     (this,ev,flags);
  953. }
  954.  
  955. /* method: Verify */
  956. OSStatus   Verify(Environment *ev)
  957. {
  958.    return SOM_ResolveD(this,HIVisualSeparator,HIObject,Verify)
  959.     (this,ev);
  960. }
  961.  
  962. /* method: somInit */
  963. void   somInit()
  964. {
  965.    SOM_ResolveD(this,HIVisualSeparator,SOMObject,somInit)
  966.     (this);
  967. }
  968.  
  969. /* method: somUninit */
  970. void   somUninit()
  971. {
  972.    SOM_ResolveD(this,HIVisualSeparator,SOMObject,somUninit)
  973.     (this);
  974. }
  975.  
  976. /* method: somDuplicateReference */
  977. SOMObject*   somDuplicateReference()
  978. {
  979.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somDuplicateReference)
  980.     (this);
  981. }
  982.  
  983. /* method: somCompareReference */
  984. boolean   somCompareReference(SOMObject* anObject)
  985. {
  986.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somCompareReference)
  987.     (this,anObject);
  988. }
  989.  
  990. /* method: somRelease */
  991. SOMObject*   somRelease()
  992. {
  993.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somRelease)
  994.     (this);
  995. }
  996.  
  997. /* method: somFree */
  998. void   somFree()
  999. {
  1000.    SOM_ResolveD(this,HIVisualSeparator,SOMObject,somFree)
  1001.     (this);
  1002. }
  1003.  
  1004. /* method: somCanDelete */
  1005. boolean   somCanDelete()
  1006. {
  1007.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somCanDelete)
  1008.     (this);
  1009. }
  1010.  
  1011. /* method: somGetClass */
  1012. SOMClass*   somGetClass()
  1013. {
  1014.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somGetClass)
  1015.     (this);
  1016. }
  1017.  
  1018. /* method: somGetClassName */
  1019. corbastring   somGetClassName()
  1020. {
  1021.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somGetClassName)
  1022.     (this);
  1023. }
  1024.  
  1025. /* method: somGetSize */
  1026. long   somGetSize()
  1027. {
  1028.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somGetSize)
  1029.     (this);
  1030. }
  1031.  
  1032. /* method: somIsA */
  1033. boolean   somIsA(SOMClass* aClassObj)
  1034. {
  1035.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somIsA)
  1036.     (this,aClassObj);
  1037. }
  1038.  
  1039. /* method: somRespondsTo */
  1040. boolean   somRespondsTo(somId mId)
  1041. {
  1042.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somRespondsTo)
  1043.     (this,mId);
  1044. }
  1045.  
  1046. /* method: somIsInstanceOf */
  1047. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1048. {
  1049.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somIsInstanceOf)
  1050.     (this,aClassObj);
  1051. }
  1052.  
  1053. /* va_list method: somDispatch */
  1054. /* the va_list invocation form */
  1055. boolean   HIVisualSeparator_somDispatch(somToken* retValue,
  1056.         somId methodId,
  1057.         va_list ap)
  1058. {
  1059.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somDispatch)
  1060.     (this,retValue,methodId,ap);
  1061. }
  1062.  
  1063. /* the varargs invocation form */
  1064. boolean   somDispatch(somToken* retValue,
  1065.         somId methodId,
  1066.         ...)
  1067. {
  1068.    va_list ap;
  1069.    va_start(ap, methodId);
  1070.       boolean __somResult = 
  1071.       (boolean) SOM_ResolveD(this,HIVisualSeparator,SOMObject,somDispatch)
  1072.     (this,retValue,methodId,ap);
  1073.    va_end(ap);
  1074.    return __somResult;
  1075. }
  1076.  
  1077. /* va_list method: somClassDispatch */
  1078. /* the va_list invocation form */
  1079. boolean   HIVisualSeparator_somClassDispatch(SOMClass* clsObj,
  1080.         somToken* retValue,
  1081.         somId methodId,
  1082.         va_list ap)
  1083. {
  1084.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somClassDispatch)
  1085.     (this,clsObj,retValue,methodId,ap);
  1086. }
  1087.  
  1088. /* the varargs invocation form */
  1089. boolean   somClassDispatch(SOMClass* clsObj,
  1090.         somToken* retValue,
  1091.         somId methodId,
  1092.         ...)
  1093. {
  1094.    va_list ap;
  1095.    va_start(ap, methodId);
  1096.       boolean __somResult = 
  1097.       (boolean) SOM_ResolveD(this,HIVisualSeparator,SOMObject,somClassDispatch)
  1098.     (this,clsObj,retValue,methodId,ap);
  1099.    va_end(ap);
  1100.    return __somResult;
  1101. }
  1102.  
  1103. /* method: somCastObj */
  1104. boolean   somCastObj(SOMClass* cls)
  1105. {
  1106.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somCastObj)
  1107.     (this,cls);
  1108. }
  1109.  
  1110. /* method: somResetObj */
  1111. boolean   somResetObj()
  1112. {
  1113.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somResetObj)
  1114.     (this);
  1115. }
  1116.  
  1117. /* method: somPrintSelf */
  1118. SOMObject*   somPrintSelf()
  1119. {
  1120.    return SOM_ResolveD(this,HIVisualSeparator,SOMObject,somPrintSelf)
  1121.     (this);
  1122. }
  1123.  
  1124. /* method: somDumpSelf */
  1125. void   somDumpSelf(long level)
  1126. {
  1127.    SOM_ResolveD(this,HIVisualSeparator,SOMObject,somDumpSelf)
  1128.     (this,level);
  1129. }
  1130.  
  1131. /* method: somDumpSelfInt */
  1132. void   somDumpSelfInt(long level)
  1133. {
  1134.    SOM_ResolveD(this,HIVisualSeparator,SOMObject,somDumpSelfInt)
  1135.     (this,level);
  1136. }
  1137.  
  1138. };   /* HIVisualSeparator */
  1139.  
  1140.  
  1141.  
  1142. #endif       /* SOM_HIVisualSeparator_xh */
  1143.  
  1144. #ifndef SOM_HIStaticPanel_xh
  1145. #define SOM_HIStaticPanel_xh
  1146.  
  1147. class HIStaticPanel;
  1148.  
  1149. #define HIStaticPanel_MajorVersion 0
  1150. #define HIStaticPanel_MinorVersion 0
  1151.  
  1152. /* C++ SOM defs */
  1153. #include <somcls.xh>
  1154. #include <somcm.xh>
  1155.  
  1156. /* C++ parent defs */
  1157. #ifndef SOM_HIPanel_xh
  1158. #include <HIPanels.xh>
  1159. #endif
  1160.  
  1161. #ifndef HIStaticPanel_API
  1162. #define HIStaticPanel_API
  1163. /*
  1164.  * -- The Class API
  1165.  */
  1166.  
  1167. /*
  1168.  * Start of user-defined types:
  1169.  */
  1170.  
  1171. /*
  1172.  * End of user-defined types.
  1173.  */
  1174.  
  1175. #ifdef OLDIBMSOMAPISUPPORT
  1176. #define HIStaticPanelCClassData HIStaticPanelClassData
  1177. #define HIStaticPanelNewClass(major,minor) somNewVersionedClassReference(HIStaticPanel,major,minor)
  1178. #endif
  1179.  
  1180. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1181. #define HIStaticPanelMetaClass SOMClass
  1182.  
  1183. #if PRAGMA_ALIGN_SUPPORTED
  1184. #  pragma options align=power
  1185. #endif
  1186.  
  1187. /* The API to the HIStaticPanel class object, and the methods it introduces. */
  1188. SOMEXTERN struct HIStaticPanelClassDataStructure {
  1189. #ifdef OLDIBMSOMAPISUPPORT
  1190.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  1191. #else
  1192.     long zero;
  1193. #endif
  1194.     somStaticClassInfo *sci;
  1195.     somDToken        instanceDataToken;
  1196.     long reserved [3];
  1197.     somMToken InitStaticPanel;
  1198. } SOMDLINK HIStaticPanelClassData;
  1199.  
  1200. #if PRAGMA_ALIGN_SUPPORTED
  1201. #  pragma options align=reset
  1202. #endif
  1203.  
  1204. #if !defined(HIStaticPanel_Class_Source) && !defined(SOM_Module_histaticpanels_Source)
  1205. #if PRAGMA_IMPORT_SUPPORTED
  1206. #pragma import list HIStaticPanelClassData
  1207. #endif
  1208. #endif
  1209.  
  1210.  
  1211. /*
  1212.  * -- Typedefs for HIStaticPanel Method Procedures
  1213.  */
  1214. SOMEXTERN {
  1215. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_InitStaticPanel)(HIStaticPanel *somSelf, Environment *ev,
  1216.         RefLabel* identifier,
  1217.         HIWindow* window,
  1218.         Rect* bounds);
  1219.  
  1220. /*
  1221.  * -- Typedefs for Inherited Methods
  1222.  */
  1223. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIStaticPanel_GetEmbeddingParent)(HIStaticPanel *somSelf, Environment *ev);
  1224. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_InitPanel)(HIStaticPanel *somSelf, Environment *ev,
  1225.         RefLabel* identifier,
  1226.         HIWindow* window,
  1227.         Rect* bounds);
  1228. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_RegisterInterestInAppleEvent)(HIStaticPanel *somSelf, Environment *ev,
  1229.         AEHandlerTableRef table,
  1230.         AEEventClass eventClass,
  1231.         AEEventID eventID,
  1232.         HIEventRoutingType eventRouting);
  1233. typedef boolean   (* SOMLINK somTD_HIStaticPanel_HasValidContent)(HIStaticPanel *somSelf, Environment *ev);
  1234. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_GetDeepCollectionItemData)(HIStaticPanel *somSelf, Environment *ev,
  1235.         CollectionTag tag,
  1236.         SInt32 id,
  1237.         ByteCount sizeAllowed,
  1238.         ByteCount* sizeReturned,
  1239.         void* itemData);
  1240. typedef HIWindow*   (* SOMLINK somTD_HIStaticPanel_GetWindow)(HIStaticPanel *somSelf, Environment *ev);
  1241. typedef CGrafPtr   (* SOMLINK somTD_HIStaticPanel_GetPort)(HIStaticPanel *somSelf, Environment *ev);
  1242. typedef void   (* SOMLINK somTD_HIStaticPanel_GetRefLabel)(HIStaticPanel *somSelf, Environment *ev,
  1243.         RefLabel* identifier);
  1244. typedef Collection   (* SOMLINK somTD_HIStaticPanel_GetCollection)(HIStaticPanel *somSelf, Environment *ev);
  1245. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_Init)(HIStaticPanel *somSelf, Environment *ev,
  1246.         RefLabel* identifier,
  1247.         Rect* boundingRect);
  1248. typedef void   (* SOMLINK somTD_HIStaticPanel_Terminate)(HIStaticPanel *somSelf, Environment *ev);
  1249. typedef HIObject*   (* SOMLINK somTD_HIStaticPanel_Clone)(HIStaticPanel *somSelf, Environment *ev);
  1250. typedef void   (* SOMLINK somTD_HIStaticPanel_Release)(HIStaticPanel *somSelf, Environment *ev);
  1251. typedef ItemCount   (* SOMLINK somTD_HIStaticPanel_GetOwnerCount)(HIStaticPanel *somSelf, Environment *ev);
  1252. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_InitFromAERecord)(HIStaticPanel *somSelf, Environment *ev,
  1253.         AESubDesc* baseInitializerData,
  1254.         AESubDesc* initializerDataForClass,
  1255.         HIAERecordDataFormat dataFormat);
  1256. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_WriteToAERecord)(HIStaticPanel *somSelf, Environment *ev,
  1257.         AERecord* dataForSubclass,
  1258.         AERecord* objectData,
  1259.         HIAERecordDataFormat dataFormat);
  1260. typedef void   (* SOMLINK somTD_HIStaticPanel_CalculateOptimalSize)(HIStaticPanel *somSelf, Environment *ev,
  1261.         SInt16* optimalWidth,
  1262.         SInt16* optimalHeight);
  1263. typedef void   (* SOMLINK somTD_HIStaticPanel_GetBoundingRect)(HIStaticPanel *somSelf, Environment *ev,
  1264.         HICoordinateSystem coordinate,
  1265.         Rect* boundingRect);
  1266. typedef void   (* SOMLINK somTD_HIStaticPanel_SetBoundingRect)(HIStaticPanel *somSelf, Environment *ev,
  1267.         HICoordinateSystem coordinate,
  1268.         Rect* newBoundingRect);
  1269. typedef void   (* SOMLINK somTD_HIStaticPanel_SetPosition)(HIStaticPanel *somSelf, Environment *ev,
  1270.         HICoordinateSystem coordinate,
  1271.         Point* newPosition);
  1272. typedef void   (* SOMLINK somTD_HIStaticPanel_SetSize)(HIStaticPanel *somSelf, Environment *ev,
  1273.         SInt16 width,
  1274.         SInt16 height);
  1275. typedef void   (* SOMLINK somTD_HIStaticPanel_GetUpdateRect)(HIStaticPanel *somSelf, Environment *ev,
  1276.         HICoordinateSystem coordinate,
  1277.         Rect* updateRect);
  1278. typedef void   (* SOMLINK somTD_HIStaticPanel_Enable)(HIStaticPanel *somSelf, Environment *ev);
  1279. typedef void   (* SOMLINK somTD_HIStaticPanel_Disable)(HIStaticPanel *somSelf, Environment *ev);
  1280. typedef boolean   (* SOMLINK somTD_HIStaticPanel_IsEnabled)(HIStaticPanel *somSelf, Environment *ev);
  1281. typedef void   (* SOMLINK somTD_HIStaticPanel_Show)(HIStaticPanel *somSelf, Environment *ev);
  1282. typedef void   (* SOMLINK somTD_HIStaticPanel_Hide)(HIStaticPanel *somSelf, Environment *ev);
  1283. typedef boolean   (* SOMLINK somTD_HIStaticPanel_IsVisible)(HIStaticPanel *somSelf, Environment *ev);
  1284. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_HandleAppleEvent)(HIStaticPanel *somSelf, Environment *ev,
  1285.         AEEventClass eventClass,
  1286.         AEEventID eventID,
  1287.         AppleEvent* theEvent,
  1288.         AppleEvent* reply,
  1289.         AEHandlerTableRef handlerTableRef);
  1290. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_HandleActivate)(HIStaticPanel *somSelf, Environment *ev,
  1291.         AppleEvent* theEvent,
  1292.         AppleEvent* reply,
  1293.         AEHandlerTableRef handlerTableRef);
  1294. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_HandleDeactivate)(HIStaticPanel *somSelf, Environment *ev,
  1295.         AppleEvent* theEvent,
  1296.         AppleEvent* reply,
  1297.         AEHandlerTableRef handlerTableRef);
  1298. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_HandleNavigation)(HIStaticPanel *somSelf, Environment *ev,
  1299.         SInt8 key,
  1300.         SInt8 keyCode,
  1301.         EventModifiers modifiers,
  1302.         AppleEvent* theEvent,
  1303.         AppleEvent* reply,
  1304.         AEHandlerTableRef handlerTableRef);
  1305. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_HandleMouseDownInContent)(HIStaticPanel *somSelf, Environment *ev,
  1306.         Point* portLocalWhere,
  1307.         EventModifiers modifiers,
  1308.         AppleEvent* theEvent,
  1309.         AppleEvent* reply,
  1310.         AEHandlerTableRef handlerTableRef);
  1311. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_HandleMouseMovedInContent)(HIStaticPanel *somSelf, Environment *ev,
  1312.         Point* portLocalWhere,
  1313.         EventModifiers modifiers,
  1314.         AppleEvent* theEvent,
  1315.         AppleEvent* reply,
  1316.         AEHandlerTableRef handlerTableRef);
  1317. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_HandleMouseStoppedMovingInContent)(HIStaticPanel *somSelf, Environment *ev,
  1318.         Point* portLocalWhere,
  1319.         EventModifiers modifiers,
  1320.         AppleEvent* theEvent,
  1321.         AppleEvent* reply,
  1322.         AEHandlerTableRef handlerTableRef);
  1323. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_HandleMouseUpInContent)(HIStaticPanel *somSelf, Environment *ev,
  1324.         Point* portLocalWhere,
  1325.         EventModifiers modifiers,
  1326.         AppleEvent* theEvent,
  1327.         AppleEvent* reply,
  1328.         AEHandlerTableRef handlerTableRef);
  1329. typedef void   (* SOMLINK somTD_HIStaticPanel_TakeUserInputFocus)(HIStaticPanel *somSelf, Environment *ev);
  1330. typedef void   (* SOMLINK somTD_HIStaticPanel_ReleaseUserInputFocus)(HIStaticPanel *somSelf, Environment *ev);
  1331. typedef boolean   (* SOMLINK somTD_HIStaticPanel_HasUserInputFocus)(HIStaticPanel *somSelf, Environment *ev);
  1332. typedef boolean   (* SOMLINK somTD_HIStaticPanel_CanReleaseUserInputFocus)(HIStaticPanel *somSelf, Environment *ev);
  1333. typedef void   (* SOMLINK somTD_HIStaticPanel_SetUserInputFocusFlags)(HIStaticPanel *somSelf, Environment *ev,
  1334.         HIUserInputFocusFlags flags);
  1335. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIStaticPanel_GetUserInputFocusFlags)(HIStaticPanel *somSelf, Environment *ev);
  1336. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_SetTitle)(HIStaticPanel *somSelf, Environment *ev,
  1337.         ConstHIImageRef title,
  1338.         HIAdoptionFlags disposalAdoptionFlags);
  1339. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_GetTitle)(HIStaticPanel *somSelf, Environment *ev,
  1340.         HIImageRef* title);
  1341. typedef void   (* SOMLINK somTD_HIStaticPanel_Draw)(HIStaticPanel *somSelf, Environment *ev,
  1342.         CGrafPtr whichPort,
  1343.         RgnHandle drawRgn);
  1344. typedef void   (* SOMLINK somTD_HIStaticPanel_Erase)(HIStaticPanel *somSelf, Environment *ev,
  1345.         CGrafPtr whichPort,
  1346.         RgnHandle eraseRgn);
  1347. typedef void   (* SOMLINK somTD_HIStaticPanel_Invalidate)(HIStaticPanel *somSelf, Environment *ev);
  1348. typedef HIDrawingMode   (* SOMLINK somTD_HIStaticPanel_GetDrawingMode)(HIStaticPanel *somSelf, Environment *ev);
  1349. typedef void   (* SOMLINK somTD_HIStaticPanel_SetDrawingMode)(HIStaticPanel *somSelf, Environment *ev,
  1350.         HIDrawingMode drawingMode);
  1351. typedef void   (* SOMLINK somTD_HIStaticPanel_SetBackgroundPattern)(HIStaticPanel *somSelf, Environment *ev,
  1352.         PixPatHandle backgroundPattern);
  1353. typedef PixPatHandle   (* SOMLINK somTD_HIStaticPanel_GetBackgroundPattern)(HIStaticPanel *somSelf, Environment *ev);
  1354. typedef void   (* SOMLINK somTD_HIStaticPanel_Cut)(HIStaticPanel *somSelf, Environment *ev);
  1355. typedef void   (* SOMLINK somTD_HIStaticPanel_Copy)(HIStaticPanel *somSelf, Environment *ev);
  1356. typedef void   (* SOMLINK somTD_HIStaticPanel_Paste)(HIStaticPanel *somSelf, Environment *ev);
  1357. typedef void   (* SOMLINK somTD_HIStaticPanel_Clear)(HIStaticPanel *somSelf, Environment *ev);
  1358. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIStaticPanel_GetClipboardSupportFlags)(HIStaticPanel *somSelf, Environment *ev);
  1359. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_AddStateChangeCallback)(HIStaticPanel *somSelf, Environment *ev,
  1360.         HIStateChangeCallbackProcPtr changedStateCallback,
  1361.         HIStateChangeCallbackRef* newCallbackRef);
  1362. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_RemoveStateChangeCallback)(HIStaticPanel *somSelf, Environment *ev,
  1363.         HIStateChangeCallbackRef callbackRefToRemove);
  1364. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_GetHIObjectFromRefLabel)(Environment *ev,
  1365.         RefLabel* identifier,
  1366.         ItemCount requestedObjects,
  1367.         ItemCount* totalObjects,
  1368.         HIObject** theObjects);
  1369. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_GetNewHIObject)(Environment *ev,
  1370.         AESubDesc* objectInitializer,
  1371.         HIObject** newObject);
  1372. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_GetNewHIObjectFromResource)(Environment *ev,
  1373.         ResID objectInitializerResourceID,
  1374.         HIObject** newObject);
  1375. typedef void   (* SOMLINK somTD_HIStaticPanel_DrawContent)(HIStaticPanel *somSelf, Environment *ev,
  1376.         CGrafPtr whichPort,
  1377.         RgnHandle drawRgn);
  1378. typedef void   (* SOMLINK somTD_HIStaticPanel_EraseContent)(HIStaticPanel *somSelf, Environment *ev,
  1379.         CGrafPtr whichPort,
  1380.         RgnHandle regionToErase);
  1381. typedef void   (* SOMLINK somTD_HIStaticPanel_TranslatePoint)(HIStaticPanel *somSelf, Environment *ev,
  1382.         HICoordinateSystem translateFrom,
  1383.         HICoordinateSystem translateTo,
  1384.         Point* sourcePoint,
  1385.         Point* translatedPoint);
  1386. typedef void   (* SOMLINK somTD_HIStaticPanel_TranslateRect)(HIStaticPanel *somSelf, Environment *ev,
  1387.         HICoordinateSystem translateFrom,
  1388.         HICoordinateSystem translateTo,
  1389.         Rect* sourceRect,
  1390.         Rect* translatedRect);
  1391. typedef void   (* SOMLINK somTD_HIStaticPanel_StateChanged)(HIStaticPanel *somSelf, Environment *ev,
  1392.         HIStateChangeCodeCreator selectorCreator,
  1393.         HIStateChangeCode changedCode);
  1394. typedef void   (* SOMLINK somTD_HIStaticPanel_SetClipboardSupportFlags)(HIStaticPanel *somSelf, Environment *ev,
  1395.         HIClipboardSupportFlags flags);
  1396. typedef OSStatus   (* SOMLINK somTD_HIStaticPanel_Verify)(HIStaticPanel *somSelf, Environment *ev);
  1397. typedef void   (* SOMLINK somTD_HIStaticPanel_somInit)(HIStaticPanel *somSelf);
  1398. typedef void   (* SOMLINK somTD_HIStaticPanel_somUninit)(HIStaticPanel *somSelf);
  1399. typedef SOMObject*   (* SOMLINK somTD_HIStaticPanel_somDuplicateReference)(HIStaticPanel *somSelf);
  1400. typedef boolean   (* SOMLINK somTD_HIStaticPanel_somCompareReference)(HIStaticPanel *somSelf,
  1401.         SOMObject* anObject);
  1402. typedef SOMObject*   (* SOMLINK somTD_HIStaticPanel_somRelease)(HIStaticPanel *somSelf);
  1403. typedef void   (* SOMLINK somTD_HIStaticPanel_somFree)(HIStaticPanel *somSelf);
  1404. typedef boolean   (* SOMLINK somTD_HIStaticPanel_somCanDelete)(HIStaticPanel *somSelf);
  1405. typedef SOMClass*   (* SOMLINK somTD_HIStaticPanel_somGetClass)(HIStaticPanel *somSelf);
  1406. typedef corbastring   (* SOMLINK somTD_HIStaticPanel_somGetClassName)(HIStaticPanel *somSelf);
  1407. typedef long   (* SOMLINK somTD_HIStaticPanel_somGetSize)(HIStaticPanel *somSelf);
  1408. typedef boolean   (* SOMLINK somTD_HIStaticPanel_somIsA)(HIStaticPanel *somSelf,
  1409.         SOMClass* aClassObj);
  1410. typedef boolean   (* SOMLINK somTD_HIStaticPanel_somRespondsTo)(HIStaticPanel *somSelf,
  1411.         somId mId);
  1412. typedef boolean   (* SOMLINK somTD_HIStaticPanel_somIsInstanceOf)(HIStaticPanel *somSelf,
  1413.         SOMClass* aClassObj);
  1414. typedef boolean   (* SOMLINK somTD_HIStaticPanel_somDispatch)(HIStaticPanel *somSelf,
  1415.         somToken* retValue,
  1416.         somId methodId,
  1417.         va_list ap);
  1418. typedef boolean   (* SOMLINK somTD_HIStaticPanel_somClassDispatch)(HIStaticPanel *somSelf,
  1419.         SOMClass* clsObj,
  1420.         somToken* retValue,
  1421.         somId methodId,
  1422.         va_list ap);
  1423. typedef boolean   (* SOMLINK somTD_HIStaticPanel_somCastObj)(HIStaticPanel *somSelf,
  1424.         SOMClass* cls);
  1425. typedef boolean   (* SOMLINK somTD_HIStaticPanel_somResetObj)(HIStaticPanel *somSelf);
  1426. typedef SOMObject*   (* SOMLINK somTD_HIStaticPanel_somPrintSelf)(HIStaticPanel *somSelf);
  1427. typedef void   (* SOMLINK somTD_HIStaticPanel_somDumpSelf)(HIStaticPanel *somSelf,
  1428.         long level);
  1429. typedef void   (* SOMLINK somTD_HIStaticPanel_somDumpSelfInt)(HIStaticPanel *somSelf,
  1430.         long level);
  1431. }
  1432.  
  1433. #endif /* HIStaticPanel_API */
  1434.  
  1435.  
  1436. /*
  1437.  * -- This emitter treats Method Tokens as Thunks by default.
  1438.  * -- Use the sc modifier "nothunks" to change this default
  1439.  */
  1440. #undef somresolve_
  1441. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1442.  
  1443. /*
  1444.  * -- The C++ Wrapper Class for HIStaticPanel
  1445.  */
  1446. class HIStaticPanel : public HIPanel
  1447. {
  1448. public:
  1449.  
  1450. // HIStaticPanel::new registers use of the class object, and then uses somNew
  1451. // to allocate memory and load the object method table pointer. 
  1452. void *operator new(size_t size)
  1453. {
  1454.     SOM_IgnoreWarning(size);
  1455.     // Allocate memory using the default allocator for HIStaticPanel, and
  1456.     // clear mem & set method table pointer, call basic initialization
  1457.     return (void*) somNewObject(HIStaticPanel);
  1458. }
  1459.  
  1460. // HIStaticPanel::delete uses the default deallocator for the object's class.
  1461. void operator delete(void * obj)
  1462. {
  1463.     if (obj) {
  1464.         SOM_Resolve(obj,SOMObject,somFree)
  1465.            ( (SOMObject*) obj );
  1466.     }
  1467. }
  1468.  
  1469. /* method: InitStaticPanel */
  1470. OSStatus   InitStaticPanel(Environment *ev,
  1471.         RefLabel* identifier,
  1472.         HIWindow* window,
  1473.         Rect* bounds)
  1474. {
  1475.    return SOM_ResolveD(this,HIStaticPanel,HIStaticPanel,InitStaticPanel)
  1476.     (this,ev,identifier,window,bounds);
  1477. }
  1478.  
  1479.  
  1480. /*
  1481.  * -- Inherited methods
  1482.  */
  1483. /* method: GetEmbeddingParent */
  1484. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  1485. {
  1486.    return SOM_ResolveD(this,HIStaticPanel,HIPanel,GetEmbeddingParent)
  1487.     (this,ev);
  1488. }
  1489.  
  1490. /* method: InitPanel */
  1491. OSStatus   InitPanel(Environment *ev,
  1492.         RefLabel* identifier,
  1493.         HIWindow* window,
  1494.         Rect* bounds)
  1495. {
  1496.    return SOM_ResolveD(this,HIStaticPanel,HIPanel,InitPanel)
  1497.     (this,ev,identifier,window,bounds);
  1498. }
  1499.  
  1500. /* method: RegisterInterestInAppleEvent */
  1501. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  1502.         AEHandlerTableRef table,
  1503.         AEEventClass eventClass,
  1504.         AEEventID eventID,
  1505.         HIEventRoutingType eventRouting)
  1506. {
  1507.    return SOM_ResolveD(this,HIStaticPanel,HIPanel,RegisterInterestInAppleEvent)
  1508.     (this,ev,table,eventClass,eventID,eventRouting);
  1509. }
  1510.  
  1511. /* method: HasValidContent */
  1512. boolean   HasValidContent(Environment *ev)
  1513. {
  1514.    return SOM_ResolveD(this,HIStaticPanel,HIPanel,HasValidContent)
  1515.     (this,ev);
  1516. }
  1517.  
  1518. /* method: GetDeepCollectionItemData */
  1519. OSStatus   GetDeepCollectionItemData(Environment *ev,
  1520.         CollectionTag tag,
  1521.         SInt32 id,
  1522.         ByteCount sizeAllowed,
  1523.         ByteCount* sizeReturned,
  1524.         void* itemData)
  1525. {
  1526.    return SOM_ResolveD(this,HIStaticPanel,HIPanel,GetDeepCollectionItemData)
  1527.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  1528. }
  1529.  
  1530. /* method: GetWindow */
  1531. HIWindow*   GetWindow(Environment *ev)
  1532. {
  1533.    return SOM_ResolveD(this,HIStaticPanel,HIObject,GetWindow)
  1534.     (this,ev);
  1535. }
  1536.  
  1537. /* method: GetPort */
  1538. CGrafPtr   GetPort(Environment *ev)
  1539. {
  1540.    return SOM_ResolveD(this,HIStaticPanel,HIObject,GetPort)
  1541.     (this,ev);
  1542. }
  1543.  
  1544. /* method: GetRefLabel */
  1545. void   GetRefLabel(Environment *ev,
  1546.         RefLabel* identifier)
  1547. {
  1548.    SOM_ResolveD(this,HIStaticPanel,HIObject,GetRefLabel)
  1549.     (this,ev,identifier);
  1550. }
  1551.  
  1552. /* method: GetCollection */
  1553. Collection   GetCollection(Environment *ev)
  1554. {
  1555.    return SOM_ResolveD(this,HIStaticPanel,HIObject,GetCollection)
  1556.     (this,ev);
  1557. }
  1558.  
  1559. /* method: Init */
  1560. OSStatus   Init(Environment *ev,
  1561.         RefLabel* identifier,
  1562.         Rect* boundingRect)
  1563. {
  1564.    return SOM_ResolveD(this,HIStaticPanel,HIObject,Init)
  1565.     (this,ev,identifier,boundingRect);
  1566. }
  1567.  
  1568. /* method: Terminate */
  1569. void   Terminate(Environment *ev)
  1570. {
  1571.    SOM_ResolveD(this,HIStaticPanel,HIObject,Terminate)
  1572.     (this,ev);
  1573. }
  1574.  
  1575. /* method: Clone */
  1576. HIObject*   Clone(Environment *ev)
  1577. {
  1578.    return SOM_ResolveD(this,HIStaticPanel,HIObject,Clone)
  1579.     (this,ev);
  1580. }
  1581.  
  1582. /* method: Release */
  1583. void   Release(Environment *ev)
  1584. {
  1585.    SOM_ResolveD(this,HIStaticPanel,HIObject,Release)
  1586.     (this,ev);
  1587. }
  1588.  
  1589. /* method: GetOwnerCount */
  1590. ItemCount   GetOwnerCount(Environment *ev)
  1591. {
  1592.    return SOM_ResolveD(this,HIStaticPanel,HIObject,GetOwnerCount)
  1593.     (this,ev);
  1594. }
  1595.  
  1596. /* method: InitFromAERecord */
  1597. OSStatus   InitFromAERecord(Environment *ev,
  1598.         AESubDesc* baseInitializerData,
  1599.         AESubDesc* initializerDataForClass,
  1600.         HIAERecordDataFormat dataFormat)
  1601. {
  1602.    return SOM_ResolveD(this,HIStaticPanel,HIObject,InitFromAERecord)
  1603.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  1604. }
  1605.  
  1606. /* method: WriteToAERecord */
  1607. OSStatus   WriteToAERecord(Environment *ev,
  1608.         AERecord* dataForSubclass,
  1609.         AERecord* objectData,
  1610.         HIAERecordDataFormat dataFormat)
  1611. {
  1612.    return SOM_ResolveD(this,HIStaticPanel,HIObject,WriteToAERecord)
  1613.     (this,ev,dataForSubclass,objectData,dataFormat);
  1614. }
  1615.  
  1616. /* method: CalculateOptimalSize */
  1617. void   CalculateOptimalSize(Environment *ev,
  1618.         SInt16* optimalWidth,
  1619.         SInt16* optimalHeight)
  1620. {
  1621.    SOM_ResolveD(this,HIStaticPanel,HIObject,CalculateOptimalSize)
  1622.     (this,ev,optimalWidth,optimalHeight);
  1623. }
  1624.  
  1625. /* method: GetBoundingRect */
  1626. void   GetBoundingRect(Environment *ev,
  1627.         HICoordinateSystem coordinate,
  1628.         Rect* boundingRect)
  1629. {
  1630.    SOM_ResolveD(this,HIStaticPanel,HIObject,GetBoundingRect)
  1631.     (this,ev,coordinate,boundingRect);
  1632. }
  1633.  
  1634. /* method: SetBoundingRect */
  1635. void   SetBoundingRect(Environment *ev,
  1636.         HICoordinateSystem coordinate,
  1637.         Rect* newBoundingRect)
  1638. {
  1639.    SOM_ResolveD(this,HIStaticPanel,HIObject,SetBoundingRect)
  1640.     (this,ev,coordinate,newBoundingRect);
  1641. }
  1642.  
  1643. /* method: SetPosition */
  1644. void   SetPosition(Environment *ev,
  1645.         HICoordinateSystem coordinate,
  1646.         Point* newPosition)
  1647. {
  1648.    SOM_ResolveD(this,HIStaticPanel,HIObject,SetPosition)
  1649.     (this,ev,coordinate,newPosition);
  1650. }
  1651.  
  1652. /* method: SetSize */
  1653. void   SetSize(Environment *ev,
  1654.         SInt16 width,
  1655.         SInt16 height)
  1656. {
  1657.    SOM_ResolveD(this,HIStaticPanel,HIObject,SetSize)
  1658.     (this,ev,width,height);
  1659. }
  1660.  
  1661. /* method: GetUpdateRect */
  1662. void   GetUpdateRect(Environment *ev,
  1663.         HICoordinateSystem coordinate,
  1664.         Rect* updateRect)
  1665. {
  1666.    SOM_ResolveD(this,HIStaticPanel,HIObject,GetUpdateRect)
  1667.     (this,ev,coordinate,updateRect);
  1668. }
  1669.  
  1670. /* method: Enable */
  1671. void   Enable(Environment *ev)
  1672. {
  1673.    SOM_ResolveD(this,HIStaticPanel,HIObject,Enable)
  1674.     (this,ev);
  1675. }
  1676.  
  1677. /* method: Disable */
  1678. void   Disable(Environment *ev)
  1679. {
  1680.    SOM_ResolveD(this,HIStaticPanel,HIObject,Disable)
  1681.     (this,ev);
  1682. }
  1683.  
  1684. /* method: IsEnabled */
  1685. boolean   IsEnabled(Environment *ev)
  1686. {
  1687.    return SOM_ResolveD(this,HIStaticPanel,HIObject,IsEnabled)
  1688.     (this,ev);
  1689. }
  1690.  
  1691. /* method: Show */
  1692. void   Show(Environment *ev)
  1693. {
  1694.    SOM_ResolveD(this,HIStaticPanel,HIObject,Show)
  1695.     (this,ev);
  1696. }
  1697.  
  1698. /* method: Hide */
  1699. void   Hide(Environment *ev)
  1700. {
  1701.    SOM_ResolveD(this,HIStaticPanel,HIObject,Hide)
  1702.     (this,ev);
  1703. }
  1704.  
  1705. /* method: IsVisible */
  1706. boolean   IsVisible(Environment *ev)
  1707. {
  1708.    return SOM_ResolveD(this,HIStaticPanel,HIObject,IsVisible)
  1709.     (this,ev);
  1710. }
  1711.  
  1712. /* method: HandleAppleEvent */
  1713. OSStatus   HandleAppleEvent(Environment *ev,
  1714.         AEEventClass eventClass,
  1715.         AEEventID eventID,
  1716.         AppleEvent* theEvent,
  1717.         AppleEvent* reply,
  1718.         AEHandlerTableRef handlerTableRef)
  1719. {
  1720.    return SOM_ResolveD(this,HIStaticPanel,HIObject,HandleAppleEvent)
  1721.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  1722. }
  1723.  
  1724. /* method: HandleActivate */
  1725. OSStatus   HandleActivate(Environment *ev,
  1726.         AppleEvent* theEvent,
  1727.         AppleEvent* reply,
  1728.         AEHandlerTableRef handlerTableRef)
  1729. {
  1730.    return SOM_ResolveD(this,HIStaticPanel,HIObject,HandleActivate)
  1731.     (this,ev,theEvent,reply,handlerTableRef);
  1732. }
  1733.  
  1734. /* method: HandleDeactivate */
  1735. OSStatus   HandleDeactivate(Environment *ev,
  1736.         AppleEvent* theEvent,
  1737.         AppleEvent* reply,
  1738.         AEHandlerTableRef handlerTableRef)
  1739. {
  1740.    return SOM_ResolveD(this,HIStaticPanel,HIObject,HandleDeactivate)
  1741.     (this,ev,theEvent,reply,handlerTableRef);
  1742. }
  1743.  
  1744. /* method: HandleNavigation */
  1745. OSStatus   HandleNavigation(Environment *ev,
  1746.         SInt8 key,
  1747.         SInt8 keyCode,
  1748.         EventModifiers modifiers,
  1749.         AppleEvent* theEvent,
  1750.         AppleEvent* reply,
  1751.         AEHandlerTableRef handlerTableRef)
  1752. {
  1753.    return SOM_ResolveD(this,HIStaticPanel,HIObject,HandleNavigation)
  1754.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  1755. }
  1756.  
  1757. /* method: HandleMouseDownInContent */
  1758. OSStatus   HandleMouseDownInContent(Environment *ev,
  1759.         Point* portLocalWhere,
  1760.         EventModifiers modifiers,
  1761.         AppleEvent* theEvent,
  1762.         AppleEvent* reply,
  1763.         AEHandlerTableRef handlerTableRef)
  1764. {
  1765.    return SOM_ResolveD(this,HIStaticPanel,HIObject,HandleMouseDownInContent)
  1766.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  1767. }
  1768.  
  1769. /* method: HandleMouseMovedInContent */
  1770. OSStatus   HandleMouseMovedInContent(Environment *ev,
  1771.         Point* portLocalWhere,
  1772.         EventModifiers modifiers,
  1773.         AppleEvent* theEvent,
  1774.         AppleEvent* reply,
  1775.         AEHandlerTableRef handlerTableRef)
  1776. {
  1777.    return SOM_ResolveD(this,HIStaticPanel,HIObject,HandleMouseMovedInContent)
  1778.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  1779. }
  1780.  
  1781. /* method: HandleMouseStoppedMovingInContent */
  1782. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  1783.         Point* portLocalWhere,
  1784.         EventModifiers modifiers,
  1785.         AppleEvent* theEvent,
  1786.         AppleEvent* reply,
  1787.         AEHandlerTableRef handlerTableRef)
  1788. {
  1789.    return SOM_ResolveD(this,HIStaticPanel,HIObject,HandleMouseStoppedMovingInContent)
  1790.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  1791. }
  1792.  
  1793. /* method: HandleMouseUpInContent */
  1794. OSStatus   HandleMouseUpInContent(Environment *ev,
  1795.         Point* portLocalWhere,
  1796.         EventModifiers modifiers,
  1797.         AppleEvent* theEvent,
  1798.         AppleEvent* reply,
  1799.         AEHandlerTableRef handlerTableRef)
  1800. {
  1801.    return SOM_ResolveD(this,HIStaticPanel,HIObject,HandleMouseUpInContent)
  1802.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  1803. }
  1804.  
  1805. /* method: TakeUserInputFocus */
  1806. void   TakeUserInputFocus(Environment *ev)
  1807. {
  1808.    SOM_ResolveD(this,HIStaticPanel,HIObject,TakeUserInputFocus)
  1809.     (this,ev);
  1810. }
  1811.  
  1812. /* method: ReleaseUserInputFocus */
  1813. void   ReleaseUserInputFocus(Environment *ev)
  1814. {
  1815.    SOM_ResolveD(this,HIStaticPanel,HIObject,ReleaseUserInputFocus)
  1816.     (this,ev);
  1817. }
  1818.  
  1819. /* method: HasUserInputFocus */
  1820. boolean   HasUserInputFocus(Environment *ev)
  1821. {
  1822.    return SOM_ResolveD(this,HIStaticPanel,HIObject,HasUserInputFocus)
  1823.     (this,ev);
  1824. }
  1825.  
  1826. /* method: CanReleaseUserInputFocus */
  1827. boolean   CanReleaseUserInputFocus(Environment *ev)
  1828. {
  1829.    return SOM_ResolveD(this,HIStaticPanel,HIObject,CanReleaseUserInputFocus)
  1830.     (this,ev);
  1831. }
  1832.  
  1833. /* method: SetUserInputFocusFlags */
  1834. void   SetUserInputFocusFlags(Environment *ev,
  1835.         HIUserInputFocusFlags flags)
  1836. {
  1837.    SOM_ResolveD(this,HIStaticPanel,HIObject,SetUserInputFocusFlags)
  1838.     (this,ev,flags);
  1839. }
  1840.  
  1841. /* method: GetUserInputFocusFlags */
  1842. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  1843. {
  1844.    return SOM_ResolveD(this,HIStaticPanel,HIObject,GetUserInputFocusFlags)
  1845.     (this,ev);
  1846. }
  1847.  
  1848. /* method: SetTitle */
  1849. OSStatus   SetTitle(Environment *ev,
  1850.         ConstHIImageRef title,
  1851.         HIAdoptionFlags disposalAdoptionFlags)
  1852. {
  1853.    return SOM_ResolveD(this,HIStaticPanel,HIObject,SetTitle)
  1854.     (this,ev,title,disposalAdoptionFlags);
  1855. }
  1856.  
  1857. /* method: GetTitle */
  1858. OSStatus   GetTitle(Environment *ev,
  1859.         HIImageRef* title)
  1860. {
  1861.    return SOM_ResolveD(this,HIStaticPanel,HIObject,GetTitle)
  1862.     (this,ev,title);
  1863. }
  1864.  
  1865. /* method: Draw */
  1866. void   Draw(Environment *ev,
  1867.         CGrafPtr whichPort,
  1868.         RgnHandle drawRgn)
  1869. {
  1870.    SOM_ResolveD(this,HIStaticPanel,HIObject,Draw)
  1871.     (this,ev,whichPort,drawRgn);
  1872. }
  1873.  
  1874. /* method: Erase */
  1875. void   Erase(Environment *ev,
  1876.         CGrafPtr whichPort,
  1877.         RgnHandle eraseRgn)
  1878. {
  1879.    SOM_ResolveD(this,HIStaticPanel,HIObject,Erase)
  1880.     (this,ev,whichPort,eraseRgn);
  1881. }
  1882.  
  1883. /* method: Invalidate */
  1884. void   Invalidate(Environment *ev)
  1885. {
  1886.    SOM_ResolveD(this,HIStaticPanel,HIObject,Invalidate)
  1887.     (this,ev);
  1888. }
  1889.  
  1890. /* method: GetDrawingMode */
  1891. HIDrawingMode   GetDrawingMode(Environment *ev)
  1892. {
  1893.    return SOM_ResolveD(this,HIStaticPanel,HIObject,GetDrawingMode)
  1894.     (this,ev);
  1895. }
  1896.  
  1897. /* method: SetDrawingMode */
  1898. void   SetDrawingMode(Environment *ev,
  1899.         HIDrawingMode drawingMode)
  1900. {
  1901.    SOM_ResolveD(this,HIStaticPanel,HIObject,SetDrawingMode)
  1902.     (this,ev,drawingMode);
  1903. }
  1904.  
  1905. /* method: SetBackgroundPattern */
  1906. void   SetBackgroundPattern(Environment *ev,
  1907.         PixPatHandle backgroundPattern)
  1908. {
  1909.    SOM_ResolveD(this,HIStaticPanel,HIObject,SetBackgroundPattern)
  1910.     (this,ev,backgroundPattern);
  1911. }
  1912.  
  1913. /* method: GetBackgroundPattern */
  1914. PixPatHandle   GetBackgroundPattern(Environment *ev)
  1915. {
  1916.    return SOM_ResolveD(this,HIStaticPanel,HIObject,GetBackgroundPattern)
  1917.     (this,ev);
  1918. }
  1919.  
  1920. /* method: Cut */
  1921. void   Cut(Environment *ev)
  1922. {
  1923.    SOM_ResolveD(this,HIStaticPanel,HIObject,Cut)
  1924.     (this,ev);
  1925. }
  1926.  
  1927. /* method: Copy */
  1928. void   Copy(Environment *ev)
  1929. {
  1930.    SOM_ResolveD(this,HIStaticPanel,HIObject,Copy)
  1931.     (this,ev);
  1932. }
  1933.  
  1934. /* method: Paste */
  1935. void   Paste(Environment *ev)
  1936. {
  1937.    SOM_ResolveD(this,HIStaticPanel,HIObject,Paste)
  1938.     (this,ev);
  1939. }
  1940.  
  1941. /* method: Clear */
  1942. void   Clear(Environment *ev)
  1943. {
  1944.    SOM_ResolveD(this,HIStaticPanel,HIObject,Clear)
  1945.     (this,ev);
  1946. }
  1947.  
  1948. /* method: GetClipboardSupportFlags */
  1949. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  1950. {
  1951.    return SOM_ResolveD(this,HIStaticPanel,HIObject,GetClipboardSupportFlags)
  1952.     (this,ev);
  1953. }
  1954.  
  1955. /* method: AddStateChangeCallback */
  1956. OSStatus   AddStateChangeCallback(Environment *ev,
  1957.         HIStateChangeCallbackProcPtr changedStateCallback,
  1958.         HIStateChangeCallbackRef* newCallbackRef)
  1959. {
  1960.    return SOM_ResolveD(this,HIStaticPanel,HIObject,AddStateChangeCallback)
  1961.     (this,ev,changedStateCallback,newCallbackRef);
  1962. }
  1963.  
  1964. /* method: RemoveStateChangeCallback */
  1965. OSStatus   RemoveStateChangeCallback(Environment *ev,
  1966.         HIStateChangeCallbackRef callbackRefToRemove)
  1967. {
  1968.    return SOM_ResolveD(this,HIStaticPanel,HIObject,RemoveStateChangeCallback)
  1969.     (this,ev,callbackRefToRemove);
  1970. }
  1971.  
  1972. /* noself procedure: GetHIObjectFromRefLabel */
  1973. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  1974.         RefLabel* identifier,
  1975.         ItemCount requestedObjects,
  1976.         ItemCount* totalObjects,
  1977.         HIObject** theObjects)
  1978. {
  1979. return ((somTD_HIStaticPanel_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  1980.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  1981. }
  1982.  
  1983. /* noself procedure: GetNewHIObject */
  1984. static OSStatus   GetNewHIObject(Environment *ev,
  1985.         AESubDesc* objectInitializer,
  1986.         HIObject** newObject)
  1987. {
  1988. return ((somTD_HIStaticPanel_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  1989.     (ev,objectInitializer,newObject);
  1990. }
  1991.  
  1992. /* noself procedure: GetNewHIObjectFromResource */
  1993. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  1994.         ResID objectInitializerResourceID,
  1995.         HIObject** newObject)
  1996. {
  1997. return ((somTD_HIStaticPanel_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  1998.     (ev,objectInitializerResourceID,newObject);
  1999. }
  2000.  
  2001. /* method: DrawContent */
  2002. void   DrawContent(Environment *ev,
  2003.         CGrafPtr whichPort,
  2004.         RgnHandle drawRgn)
  2005. {
  2006.    SOM_ResolveD(this,HIStaticPanel,HIObject,DrawContent)
  2007.     (this,ev,whichPort,drawRgn);
  2008. }
  2009.  
  2010. /* method: EraseContent */
  2011. void   EraseContent(Environment *ev,
  2012.         CGrafPtr whichPort,
  2013.         RgnHandle regionToErase)
  2014. {
  2015.    SOM_ResolveD(this,HIStaticPanel,HIObject,EraseContent)
  2016.     (this,ev,whichPort,regionToErase);
  2017. }
  2018.  
  2019. /* method: TranslatePoint */
  2020. void   TranslatePoint(Environment *ev,
  2021.         HICoordinateSystem translateFrom,
  2022.         HICoordinateSystem translateTo,
  2023.         Point* sourcePoint,
  2024.         Point* translatedPoint)
  2025. {
  2026.    SOM_ResolveD(this,HIStaticPanel,HIObject,TranslatePoint)
  2027.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  2028. }
  2029.  
  2030. /* method: TranslateRect */
  2031. void   TranslateRect(Environment *ev,
  2032.         HICoordinateSystem translateFrom,
  2033.         HICoordinateSystem translateTo,
  2034.         Rect* sourceRect,
  2035.         Rect* translatedRect)
  2036. {
  2037.    SOM_ResolveD(this,HIStaticPanel,HIObject,TranslateRect)
  2038.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  2039. }
  2040.  
  2041. /* method: StateChanged */
  2042. void   StateChanged(Environment *ev,
  2043.         HIStateChangeCodeCreator selectorCreator,
  2044.         HIStateChangeCode changedCode)
  2045. {
  2046.    SOM_ResolveD(this,HIStaticPanel,HIObject,StateChanged)
  2047.     (this,ev,selectorCreator,changedCode);
  2048. }
  2049.  
  2050. /* method: SetClipboardSupportFlags */
  2051. void   SetClipboardSupportFlags(Environment *ev,
  2052.         HIClipboardSupportFlags flags)
  2053. {
  2054.    SOM_ResolveD(this,HIStaticPanel,HIObject,SetClipboardSupportFlags)
  2055.     (this,ev,flags);
  2056. }
  2057.  
  2058. /* method: Verify */
  2059. OSStatus   Verify(Environment *ev)
  2060. {
  2061.    return SOM_ResolveD(this,HIStaticPanel,HIObject,Verify)
  2062.     (this,ev);
  2063. }
  2064.  
  2065. /* method: somInit */
  2066. void   somInit()
  2067. {
  2068.    SOM_ResolveD(this,HIStaticPanel,SOMObject,somInit)
  2069.     (this);
  2070. }
  2071.  
  2072. /* method: somUninit */
  2073. void   somUninit()
  2074. {
  2075.    SOM_ResolveD(this,HIStaticPanel,SOMObject,somUninit)
  2076.     (this);
  2077. }
  2078.  
  2079. /* method: somDuplicateReference */
  2080. SOMObject*   somDuplicateReference()
  2081. {
  2082.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somDuplicateReference)
  2083.     (this);
  2084. }
  2085.  
  2086. /* method: somCompareReference */
  2087. boolean   somCompareReference(SOMObject* anObject)
  2088. {
  2089.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somCompareReference)
  2090.     (this,anObject);
  2091. }
  2092.  
  2093. /* method: somRelease */
  2094. SOMObject*   somRelease()
  2095. {
  2096.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somRelease)
  2097.     (this);
  2098. }
  2099.  
  2100. /* method: somFree */
  2101. void   somFree()
  2102. {
  2103.    SOM_ResolveD(this,HIStaticPanel,SOMObject,somFree)
  2104.     (this);
  2105. }
  2106.  
  2107. /* method: somCanDelete */
  2108. boolean   somCanDelete()
  2109. {
  2110.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somCanDelete)
  2111.     (this);
  2112. }
  2113.  
  2114. /* method: somGetClass */
  2115. SOMClass*   somGetClass()
  2116. {
  2117.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somGetClass)
  2118.     (this);
  2119. }
  2120.  
  2121. /* method: somGetClassName */
  2122. corbastring   somGetClassName()
  2123. {
  2124.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somGetClassName)
  2125.     (this);
  2126. }
  2127.  
  2128. /* method: somGetSize */
  2129. long   somGetSize()
  2130. {
  2131.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somGetSize)
  2132.     (this);
  2133. }
  2134.  
  2135. /* method: somIsA */
  2136. boolean   somIsA(SOMClass* aClassObj)
  2137. {
  2138.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somIsA)
  2139.     (this,aClassObj);
  2140. }
  2141.  
  2142. /* method: somRespondsTo */
  2143. boolean   somRespondsTo(somId mId)
  2144. {
  2145.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somRespondsTo)
  2146.     (this,mId);
  2147. }
  2148.  
  2149. /* method: somIsInstanceOf */
  2150. boolean   somIsInstanceOf(SOMClass* aClassObj)
  2151. {
  2152.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somIsInstanceOf)
  2153.     (this,aClassObj);
  2154. }
  2155.  
  2156. /* va_list method: somDispatch */
  2157. /* the va_list invocation form */
  2158. boolean   HIStaticPanel_somDispatch(somToken* retValue,
  2159.         somId methodId,
  2160.         va_list ap)
  2161. {
  2162.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somDispatch)
  2163.     (this,retValue,methodId,ap);
  2164. }
  2165.  
  2166. /* the varargs invocation form */
  2167. boolean   somDispatch(somToken* retValue,
  2168.         somId methodId,
  2169.         ...)
  2170. {
  2171.    va_list ap;
  2172.    va_start(ap, methodId);
  2173.       boolean __somResult = 
  2174.       (boolean) SOM_ResolveD(this,HIStaticPanel,SOMObject,somDispatch)
  2175.     (this,retValue,methodId,ap);
  2176.    va_end(ap);
  2177.    return __somResult;
  2178. }
  2179.  
  2180. /* va_list method: somClassDispatch */
  2181. /* the va_list invocation form */
  2182. boolean   HIStaticPanel_somClassDispatch(SOMClass* clsObj,
  2183.         somToken* retValue,
  2184.         somId methodId,
  2185.         va_list ap)
  2186. {
  2187.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somClassDispatch)
  2188.     (this,clsObj,retValue,methodId,ap);
  2189. }
  2190.  
  2191. /* the varargs invocation form */
  2192. boolean   somClassDispatch(SOMClass* clsObj,
  2193.         somToken* retValue,
  2194.         somId methodId,
  2195.         ...)
  2196. {
  2197.    va_list ap;
  2198.    va_start(ap, methodId);
  2199.       boolean __somResult = 
  2200.       (boolean) SOM_ResolveD(this,HIStaticPanel,SOMObject,somClassDispatch)
  2201.     (this,clsObj,retValue,methodId,ap);
  2202.    va_end(ap);
  2203.    return __somResult;
  2204. }
  2205.  
  2206. /* method: somCastObj */
  2207. boolean   somCastObj(SOMClass* cls)
  2208. {
  2209.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somCastObj)
  2210.     (this,cls);
  2211. }
  2212.  
  2213. /* method: somResetObj */
  2214. boolean   somResetObj()
  2215. {
  2216.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somResetObj)
  2217.     (this);
  2218. }
  2219.  
  2220. /* method: somPrintSelf */
  2221. SOMObject*   somPrintSelf()
  2222. {
  2223.    return SOM_ResolveD(this,HIStaticPanel,SOMObject,somPrintSelf)
  2224.     (this);
  2225. }
  2226.  
  2227. /* method: somDumpSelf */
  2228. void   somDumpSelf(long level)
  2229. {
  2230.    SOM_ResolveD(this,HIStaticPanel,SOMObject,somDumpSelf)
  2231.     (this,level);
  2232. }
  2233.  
  2234. /* method: somDumpSelfInt */
  2235. void   somDumpSelfInt(long level)
  2236. {
  2237.    SOM_ResolveD(this,HIStaticPanel,SOMObject,somDumpSelfInt)
  2238.     (this,level);
  2239. }
  2240.  
  2241. };   /* HIStaticPanel */
  2242.  
  2243.  
  2244.  
  2245. #endif       /* SOM_HIStaticPanel_xh */
  2246.  
  2247. #ifndef SOM_HIPicture_xh
  2248. #define SOM_HIPicture_xh
  2249.  
  2250. class HIPicture;
  2251.  
  2252. #define HIPicture_MajorVersion 0
  2253. #define HIPicture_MinorVersion 0
  2254.  
  2255. /* C++ SOM defs */
  2256. #include <somcls.xh>
  2257. #include <somcm.xh>
  2258.  
  2259. /* C++ parent defs */
  2260. #ifndef SOM_HIStaticPanel_xh
  2261. #include <HIStaticPanels.xh>
  2262. #endif
  2263.  
  2264. #ifndef HIPicture_API
  2265. #define HIPicture_API
  2266. /*
  2267.  * -- The Class API
  2268.  */
  2269.  
  2270. /*
  2271.  * Start of user-defined types:
  2272.  */
  2273.  
  2274. /*
  2275.  * End of user-defined types.
  2276.  */
  2277.  
  2278. #ifdef OLDIBMSOMAPISUPPORT
  2279. #define HIPictureCClassData HIPictureClassData
  2280. #define HIPictureNewClass(major,minor) somNewVersionedClassReference(HIPicture,major,minor)
  2281. #endif
  2282.  
  2283. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  2284. #define HIPictureMetaClass SOMClass
  2285.  
  2286. #if PRAGMA_ALIGN_SUPPORTED
  2287. #  pragma options align=power
  2288. #endif
  2289.  
  2290. /* The API to the HIPicture class object, and the methods it introduces. */
  2291. SOMEXTERN struct HIPictureClassDataStructure {
  2292. #ifdef OLDIBMSOMAPISUPPORT
  2293.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  2294. #else
  2295.     long zero;
  2296. #endif
  2297.     somStaticClassInfo *sci;
  2298.     somDToken        instanceDataToken;
  2299.     long reserved [3];
  2300.     somMToken InitPicture;
  2301.     somMToken GetPicture;
  2302.     somMToken SetPicture;
  2303. } SOMDLINK HIPictureClassData;
  2304.  
  2305. #if PRAGMA_ALIGN_SUPPORTED
  2306. #  pragma options align=reset
  2307. #endif
  2308.  
  2309. #if !defined(HIPicture_Class_Source) && !defined(SOM_Module_histaticpanels_Source)
  2310. #if PRAGMA_IMPORT_SUPPORTED
  2311. #pragma import list HIPictureClassData
  2312. #endif
  2313. #endif
  2314.  
  2315.  
  2316. /*
  2317.  * -- Typedefs for HIPicture Method Procedures
  2318.  */
  2319. SOMEXTERN {
  2320. typedef OSStatus   (* SOMLINK somTD_HIPicture_InitPicture)(HIPicture *somSelf, Environment *ev,
  2321.         RefLabel* identifier,
  2322.         HIWindow* window,
  2323.         Rect* bounds,
  2324.         PicHandle picture);
  2325. typedef PicHandle   (* SOMLINK somTD_HIPicture_GetPicture)(HIPicture *somSelf, Environment *ev);
  2326. typedef void   (* SOMLINK somTD_HIPicture_SetPicture)(HIPicture *somSelf, Environment *ev,
  2327.         PicHandle picture);
  2328.  
  2329. /*
  2330.  * -- Typedefs for Inherited Methods
  2331.  */
  2332. typedef OSStatus   (* SOMLINK somTD_HIPicture_InitStaticPanel)(HIPicture *somSelf, Environment *ev,
  2333.         RefLabel* identifier,
  2334.         HIWindow* window,
  2335.         Rect* bounds);
  2336. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIPicture_GetEmbeddingParent)(HIPicture *somSelf, Environment *ev);
  2337. typedef OSStatus   (* SOMLINK somTD_HIPicture_InitPanel)(HIPicture *somSelf, Environment *ev,
  2338.         RefLabel* identifier,
  2339.         HIWindow* window,
  2340.         Rect* bounds);
  2341. typedef OSStatus   (* SOMLINK somTD_HIPicture_RegisterInterestInAppleEvent)(HIPicture *somSelf, Environment *ev,
  2342.         AEHandlerTableRef table,
  2343.         AEEventClass eventClass,
  2344.         AEEventID eventID,
  2345.         HIEventRoutingType eventRouting);
  2346. typedef boolean   (* SOMLINK somTD_HIPicture_HasValidContent)(HIPicture *somSelf, Environment *ev);
  2347. typedef OSStatus   (* SOMLINK somTD_HIPicture_GetDeepCollectionItemData)(HIPicture *somSelf, Environment *ev,
  2348.         CollectionTag tag,
  2349.         SInt32 id,
  2350.         ByteCount sizeAllowed,
  2351.         ByteCount* sizeReturned,
  2352.         void* itemData);
  2353. typedef HIWindow*   (* SOMLINK somTD_HIPicture_GetWindow)(HIPicture *somSelf, Environment *ev);
  2354. typedef CGrafPtr   (* SOMLINK somTD_HIPicture_GetPort)(HIPicture *somSelf, Environment *ev);
  2355. typedef void   (* SOMLINK somTD_HIPicture_GetRefLabel)(HIPicture *somSelf, Environment *ev,
  2356.         RefLabel* identifier);
  2357. typedef Collection   (* SOMLINK somTD_HIPicture_GetCollection)(HIPicture *somSelf, Environment *ev);
  2358. typedef OSStatus   (* SOMLINK somTD_HIPicture_Init)(HIPicture *somSelf, Environment *ev,
  2359.         RefLabel* identifier,
  2360.         Rect* boundingRect);
  2361. typedef void   (* SOMLINK somTD_HIPicture_Terminate)(HIPicture *somSelf, Environment *ev);
  2362. typedef HIObject*   (* SOMLINK somTD_HIPicture_Clone)(HIPicture *somSelf, Environment *ev);
  2363. typedef void   (* SOMLINK somTD_HIPicture_Release)(HIPicture *somSelf, Environment *ev);
  2364. typedef ItemCount   (* SOMLINK somTD_HIPicture_GetOwnerCount)(HIPicture *somSelf, Environment *ev);
  2365. typedef OSStatus   (* SOMLINK somTD_HIPicture_InitFromAERecord)(HIPicture *somSelf, Environment *ev,
  2366.         AESubDesc* baseInitializerData,
  2367.         AESubDesc* initializerDataForClass,
  2368.         HIAERecordDataFormat dataFormat);
  2369. typedef OSStatus   (* SOMLINK somTD_HIPicture_WriteToAERecord)(HIPicture *somSelf, Environment *ev,
  2370.         AERecord* dataForSubclass,
  2371.         AERecord* objectData,
  2372.         HIAERecordDataFormat dataFormat);
  2373. typedef void   (* SOMLINK somTD_HIPicture_CalculateOptimalSize)(HIPicture *somSelf, Environment *ev,
  2374.         SInt16* optimalWidth,
  2375.         SInt16* optimalHeight);
  2376. typedef void   (* SOMLINK somTD_HIPicture_GetBoundingRect)(HIPicture *somSelf, Environment *ev,
  2377.         HICoordinateSystem coordinate,
  2378.         Rect* boundingRect);
  2379. typedef void   (* SOMLINK somTD_HIPicture_SetBoundingRect)(HIPicture *somSelf, Environment *ev,
  2380.         HICoordinateSystem coordinate,
  2381.         Rect* newBoundingRect);
  2382. typedef void   (* SOMLINK somTD_HIPicture_SetPosition)(HIPicture *somSelf, Environment *ev,
  2383.         HICoordinateSystem coordinate,
  2384.         Point* newPosition);
  2385. typedef void   (* SOMLINK somTD_HIPicture_SetSize)(HIPicture *somSelf, Environment *ev,
  2386.         SInt16 width,
  2387.         SInt16 height);
  2388. typedef void   (* SOMLINK somTD_HIPicture_GetUpdateRect)(HIPicture *somSelf, Environment *ev,
  2389.         HICoordinateSystem coordinate,
  2390.         Rect* updateRect);
  2391. typedef void   (* SOMLINK somTD_HIPicture_Enable)(HIPicture *somSelf, Environment *ev);
  2392. typedef void   (* SOMLINK somTD_HIPicture_Disable)(HIPicture *somSelf, Environment *ev);
  2393. typedef boolean   (* SOMLINK somTD_HIPicture_IsEnabled)(HIPicture *somSelf, Environment *ev);
  2394. typedef void   (* SOMLINK somTD_HIPicture_Show)(HIPicture *somSelf, Environment *ev);
  2395. typedef void   (* SOMLINK somTD_HIPicture_Hide)(HIPicture *somSelf, Environment *ev);
  2396. typedef boolean   (* SOMLINK somTD_HIPicture_IsVisible)(HIPicture *somSelf, Environment *ev);
  2397. typedef OSStatus   (* SOMLINK somTD_HIPicture_HandleAppleEvent)(HIPicture *somSelf, Environment *ev,
  2398.         AEEventClass eventClass,
  2399.         AEEventID eventID,
  2400.         AppleEvent* theEvent,
  2401.         AppleEvent* reply,
  2402.         AEHandlerTableRef handlerTableRef);
  2403. typedef OSStatus   (* SOMLINK somTD_HIPicture_HandleActivate)(HIPicture *somSelf, Environment *ev,
  2404.         AppleEvent* theEvent,
  2405.         AppleEvent* reply,
  2406.         AEHandlerTableRef handlerTableRef);
  2407. typedef OSStatus   (* SOMLINK somTD_HIPicture_HandleDeactivate)(HIPicture *somSelf, Environment *ev,
  2408.         AppleEvent* theEvent,
  2409.         AppleEvent* reply,
  2410.         AEHandlerTableRef handlerTableRef);
  2411. typedef OSStatus   (* SOMLINK somTD_HIPicture_HandleNavigation)(HIPicture *somSelf, Environment *ev,
  2412.         SInt8 key,
  2413.         SInt8 keyCode,
  2414.         EventModifiers modifiers,
  2415.         AppleEvent* theEvent,
  2416.         AppleEvent* reply,
  2417.         AEHandlerTableRef handlerTableRef);
  2418. typedef OSStatus   (* SOMLINK somTD_HIPicture_HandleMouseDownInContent)(HIPicture *somSelf, Environment *ev,
  2419.         Point* portLocalWhere,
  2420.         EventModifiers modifiers,
  2421.         AppleEvent* theEvent,
  2422.         AppleEvent* reply,
  2423.         AEHandlerTableRef handlerTableRef);
  2424. typedef OSStatus   (* SOMLINK somTD_HIPicture_HandleMouseMovedInContent)(HIPicture *somSelf, Environment *ev,
  2425.         Point* portLocalWhere,
  2426.         EventModifiers modifiers,
  2427.         AppleEvent* theEvent,
  2428.         AppleEvent* reply,
  2429.         AEHandlerTableRef handlerTableRef);
  2430. typedef OSStatus   (* SOMLINK somTD_HIPicture_HandleMouseStoppedMovingInContent)(HIPicture *somSelf, Environment *ev,
  2431.         Point* portLocalWhere,
  2432.         EventModifiers modifiers,
  2433.         AppleEvent* theEvent,
  2434.         AppleEvent* reply,
  2435.         AEHandlerTableRef handlerTableRef);
  2436. typedef OSStatus   (* SOMLINK somTD_HIPicture_HandleMouseUpInContent)(HIPicture *somSelf, Environment *ev,
  2437.         Point* portLocalWhere,
  2438.         EventModifiers modifiers,
  2439.         AppleEvent* theEvent,
  2440.         AppleEvent* reply,
  2441.         AEHandlerTableRef handlerTableRef);
  2442. typedef void   (* SOMLINK somTD_HIPicture_TakeUserInputFocus)(HIPicture *somSelf, Environment *ev);
  2443. typedef void   (* SOMLINK somTD_HIPicture_ReleaseUserInputFocus)(HIPicture *somSelf, Environment *ev);
  2444. typedef boolean   (* SOMLINK somTD_HIPicture_HasUserInputFocus)(HIPicture *somSelf, Environment *ev);
  2445. typedef boolean   (* SOMLINK somTD_HIPicture_CanReleaseUserInputFocus)(HIPicture *somSelf, Environment *ev);
  2446. typedef void   (* SOMLINK somTD_HIPicture_SetUserInputFocusFlags)(HIPicture *somSelf, Environment *ev,
  2447.         HIUserInputFocusFlags flags);
  2448. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIPicture_GetUserInputFocusFlags)(HIPicture *somSelf, Environment *ev);
  2449. typedef OSStatus   (* SOMLINK somTD_HIPicture_SetTitle)(HIPicture *somSelf, Environment *ev,
  2450.         ConstHIImageRef title,
  2451.         HIAdoptionFlags disposalAdoptionFlags);
  2452. typedef OSStatus   (* SOMLINK somTD_HIPicture_GetTitle)(HIPicture *somSelf, Environment *ev,
  2453.         HIImageRef* title);
  2454. typedef void   (* SOMLINK somTD_HIPicture_Draw)(HIPicture *somSelf, Environment *ev,
  2455.         CGrafPtr whichPort,
  2456.         RgnHandle drawRgn);
  2457. typedef void   (* SOMLINK somTD_HIPicture_Erase)(HIPicture *somSelf, Environment *ev,
  2458.         CGrafPtr whichPort,
  2459.         RgnHandle eraseRgn);
  2460. typedef void   (* SOMLINK somTD_HIPicture_Invalidate)(HIPicture *somSelf, Environment *ev);
  2461. typedef HIDrawingMode   (* SOMLINK somTD_HIPicture_GetDrawingMode)(HIPicture *somSelf, Environment *ev);
  2462. typedef void   (* SOMLINK somTD_HIPicture_SetDrawingMode)(HIPicture *somSelf, Environment *ev,
  2463.         HIDrawingMode drawingMode);
  2464. typedef void   (* SOMLINK somTD_HIPicture_SetBackgroundPattern)(HIPicture *somSelf, Environment *ev,
  2465.         PixPatHandle backgroundPattern);
  2466. typedef PixPatHandle   (* SOMLINK somTD_HIPicture_GetBackgroundPattern)(HIPicture *somSelf, Environment *ev);
  2467. typedef void   (* SOMLINK somTD_HIPicture_Cut)(HIPicture *somSelf, Environment *ev);
  2468. typedef void   (* SOMLINK somTD_HIPicture_Copy)(HIPicture *somSelf, Environment *ev);
  2469. typedef void   (* SOMLINK somTD_HIPicture_Paste)(HIPicture *somSelf, Environment *ev);
  2470. typedef void   (* SOMLINK somTD_HIPicture_Clear)(HIPicture *somSelf, Environment *ev);
  2471. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIPicture_GetClipboardSupportFlags)(HIPicture *somSelf, Environment *ev);
  2472. typedef OSStatus   (* SOMLINK somTD_HIPicture_AddStateChangeCallback)(HIPicture *somSelf, Environment *ev,
  2473.         HIStateChangeCallbackProcPtr changedStateCallback,
  2474.         HIStateChangeCallbackRef* newCallbackRef);
  2475. typedef OSStatus   (* SOMLINK somTD_HIPicture_RemoveStateChangeCallback)(HIPicture *somSelf, Environment *ev,
  2476.         HIStateChangeCallbackRef callbackRefToRemove);
  2477. typedef OSStatus   (* SOMLINK somTD_HIPicture_GetHIObjectFromRefLabel)(Environment *ev,
  2478.         RefLabel* identifier,
  2479.         ItemCount requestedObjects,
  2480.         ItemCount* totalObjects,
  2481.         HIObject** theObjects);
  2482. typedef OSStatus   (* SOMLINK somTD_HIPicture_GetNewHIObject)(Environment *ev,
  2483.         AESubDesc* objectInitializer,
  2484.         HIObject** newObject);
  2485. typedef OSStatus   (* SOMLINK somTD_HIPicture_GetNewHIObjectFromResource)(Environment *ev,
  2486.         ResID objectInitializerResourceID,
  2487.         HIObject** newObject);
  2488. typedef void   (* SOMLINK somTD_HIPicture_DrawContent)(HIPicture *somSelf, Environment *ev,
  2489.         CGrafPtr whichPort,
  2490.         RgnHandle drawRgn);
  2491. typedef void   (* SOMLINK somTD_HIPicture_EraseContent)(HIPicture *somSelf, Environment *ev,
  2492.         CGrafPtr whichPort,
  2493.         RgnHandle regionToErase);
  2494. typedef void   (* SOMLINK somTD_HIPicture_TranslatePoint)(HIPicture *somSelf, Environment *ev,
  2495.         HICoordinateSystem translateFrom,
  2496.         HICoordinateSystem translateTo,
  2497.         Point* sourcePoint,
  2498.         Point* translatedPoint);
  2499. typedef void   (* SOMLINK somTD_HIPicture_TranslateRect)(HIPicture *somSelf, Environment *ev,
  2500.         HICoordinateSystem translateFrom,
  2501.         HICoordinateSystem translateTo,
  2502.         Rect* sourceRect,
  2503.         Rect* translatedRect);
  2504. typedef void   (* SOMLINK somTD_HIPicture_StateChanged)(HIPicture *somSelf, Environment *ev,
  2505.         HIStateChangeCodeCreator selectorCreator,
  2506.         HIStateChangeCode changedCode);
  2507. typedef void   (* SOMLINK somTD_HIPicture_SetClipboardSupportFlags)(HIPicture *somSelf, Environment *ev,
  2508.         HIClipboardSupportFlags flags);
  2509. typedef OSStatus   (* SOMLINK somTD_HIPicture_Verify)(HIPicture *somSelf, Environment *ev);
  2510. typedef void   (* SOMLINK somTD_HIPicture_somInit)(HIPicture *somSelf);
  2511. typedef void   (* SOMLINK somTD_HIPicture_somUninit)(HIPicture *somSelf);
  2512. typedef SOMObject*   (* SOMLINK somTD_HIPicture_somDuplicateReference)(HIPicture *somSelf);
  2513. typedef boolean   (* SOMLINK somTD_HIPicture_somCompareReference)(HIPicture *somSelf,
  2514.         SOMObject* anObject);
  2515. typedef SOMObject*   (* SOMLINK somTD_HIPicture_somRelease)(HIPicture *somSelf);
  2516. typedef void   (* SOMLINK somTD_HIPicture_somFree)(HIPicture *somSelf);
  2517. typedef boolean   (* SOMLINK somTD_HIPicture_somCanDelete)(HIPicture *somSelf);
  2518. typedef SOMClass*   (* SOMLINK somTD_HIPicture_somGetClass)(HIPicture *somSelf);
  2519. typedef corbastring   (* SOMLINK somTD_HIPicture_somGetClassName)(HIPicture *somSelf);
  2520. typedef long   (* SOMLINK somTD_HIPicture_somGetSize)(HIPicture *somSelf);
  2521. typedef boolean   (* SOMLINK somTD_HIPicture_somIsA)(HIPicture *somSelf,
  2522.         SOMClass* aClassObj);
  2523. typedef boolean   (* SOMLINK somTD_HIPicture_somRespondsTo)(HIPicture *somSelf,
  2524.         somId mId);
  2525. typedef boolean   (* SOMLINK somTD_HIPicture_somIsInstanceOf)(HIPicture *somSelf,
  2526.         SOMClass* aClassObj);
  2527. typedef boolean   (* SOMLINK somTD_HIPicture_somDispatch)(HIPicture *somSelf,
  2528.         somToken* retValue,
  2529.         somId methodId,
  2530.         va_list ap);
  2531. typedef boolean   (* SOMLINK somTD_HIPicture_somClassDispatch)(HIPicture *somSelf,
  2532.         SOMClass* clsObj,
  2533.         somToken* retValue,
  2534.         somId methodId,
  2535.         va_list ap);
  2536. typedef boolean   (* SOMLINK somTD_HIPicture_somCastObj)(HIPicture *somSelf,
  2537.         SOMClass* cls);
  2538. typedef boolean   (* SOMLINK somTD_HIPicture_somResetObj)(HIPicture *somSelf);
  2539. typedef SOMObject*   (* SOMLINK somTD_HIPicture_somPrintSelf)(HIPicture *somSelf);
  2540. typedef void   (* SOMLINK somTD_HIPicture_somDumpSelf)(HIPicture *somSelf,
  2541.         long level);
  2542. typedef void   (* SOMLINK somTD_HIPicture_somDumpSelfInt)(HIPicture *somSelf,
  2543.         long level);
  2544. }
  2545.  
  2546. #endif /* HIPicture_API */
  2547.  
  2548.  
  2549. /*
  2550.  * -- This emitter treats Method Tokens as Thunks by default.
  2551.  * -- Use the sc modifier "nothunks" to change this default
  2552.  */
  2553. #undef somresolve_
  2554. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  2555.  
  2556. /*
  2557.  * -- The C++ Wrapper Class for HIPicture
  2558.  */
  2559. class HIPicture : public HIStaticPanel
  2560. {
  2561. public:
  2562.  
  2563. // HIPicture::new registers use of the class object, and then uses somNew
  2564. // to allocate memory and load the object method table pointer. 
  2565. void *operator new(size_t size)
  2566. {
  2567.     SOM_IgnoreWarning(size);
  2568.     // Allocate memory using the default allocator for HIPicture, and
  2569.     // clear mem & set method table pointer, call basic initialization
  2570.     return (void*) somNewObject(HIPicture);
  2571. }
  2572.  
  2573. // HIPicture::delete uses the default deallocator for the object's class.
  2574. void operator delete(void * obj)
  2575. {
  2576.     if (obj) {
  2577.         SOM_Resolve(obj,SOMObject,somFree)
  2578.            ( (SOMObject*) obj );
  2579.     }
  2580. }
  2581.  
  2582. /* method: InitPicture */
  2583. OSStatus   InitPicture(Environment *ev,
  2584.         RefLabel* identifier,
  2585.         HIWindow* window,
  2586.         Rect* bounds,
  2587.         PicHandle picture)
  2588. {
  2589.    return SOM_ResolveD(this,HIPicture,HIPicture,InitPicture)
  2590.     (this,ev,identifier,window,bounds,picture);
  2591. }
  2592.  
  2593. /* method: GetPicture */
  2594. PicHandle   GetPicture(Environment *ev)
  2595. {
  2596.    return SOM_ResolveD(this,HIPicture,HIPicture,GetPicture)
  2597.     (this,ev);
  2598. }
  2599.  
  2600. /* method: SetPicture */
  2601. void   SetPicture(Environment *ev,
  2602.         PicHandle picture)
  2603. {
  2604.    SOM_ResolveD(this,HIPicture,HIPicture,SetPicture)
  2605.     (this,ev,picture);
  2606. }
  2607.  
  2608.  
  2609. /*
  2610.  * -- Inherited methods
  2611.  */
  2612. /* method: InitStaticPanel */
  2613. OSStatus   InitStaticPanel(Environment *ev,
  2614.         RefLabel* identifier,
  2615.         HIWindow* window,
  2616.         Rect* bounds)
  2617. {
  2618.    return SOM_ResolveD(this,HIPicture,HIStaticPanel,InitStaticPanel)
  2619.     (this,ev,identifier,window,bounds);
  2620. }
  2621.  
  2622. /* method: GetEmbeddingParent */
  2623. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  2624. {
  2625.    return SOM_ResolveD(this,HIPicture,HIPanel,GetEmbeddingParent)
  2626.     (this,ev);
  2627. }
  2628.  
  2629. /* method: InitPanel */
  2630. OSStatus   InitPanel(Environment *ev,
  2631.         RefLabel* identifier,
  2632.         HIWindow* window,
  2633.         Rect* bounds)
  2634. {
  2635.    return SOM_ResolveD(this,HIPicture,HIPanel,InitPanel)
  2636.     (this,ev,identifier,window,bounds);
  2637. }
  2638.  
  2639. /* method: RegisterInterestInAppleEvent */
  2640. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  2641.         AEHandlerTableRef table,
  2642.         AEEventClass eventClass,
  2643.         AEEventID eventID,
  2644.         HIEventRoutingType eventRouting)
  2645. {
  2646.    return SOM_ResolveD(this,HIPicture,HIPanel,RegisterInterestInAppleEvent)
  2647.     (this,ev,table,eventClass,eventID,eventRouting);
  2648. }
  2649.  
  2650. /* method: HasValidContent */
  2651. boolean   HasValidContent(Environment *ev)
  2652. {
  2653.    return SOM_ResolveD(this,HIPicture,HIPanel,HasValidContent)
  2654.     (this,ev);
  2655. }
  2656.  
  2657. /* method: GetDeepCollectionItemData */
  2658. OSStatus   GetDeepCollectionItemData(Environment *ev,
  2659.         CollectionTag tag,
  2660.         SInt32 id,
  2661.         ByteCount sizeAllowed,
  2662.         ByteCount* sizeReturned,
  2663.         void* itemData)
  2664. {
  2665.    return SOM_ResolveD(this,HIPicture,HIPanel,GetDeepCollectionItemData)
  2666.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  2667. }
  2668.  
  2669. /* method: GetWindow */
  2670. HIWindow*   GetWindow(Environment *ev)
  2671. {
  2672.    return SOM_ResolveD(this,HIPicture,HIObject,GetWindow)
  2673.     (this,ev);
  2674. }
  2675.  
  2676. /* method: GetPort */
  2677. CGrafPtr   GetPort(Environment *ev)
  2678. {
  2679.    return SOM_ResolveD(this,HIPicture,HIObject,GetPort)
  2680.     (this,ev);
  2681. }
  2682.  
  2683. /* method: GetRefLabel */
  2684. void   GetRefLabel(Environment *ev,
  2685.         RefLabel* identifier)
  2686. {
  2687.    SOM_ResolveD(this,HIPicture,HIObject,GetRefLabel)
  2688.     (this,ev,identifier);
  2689. }
  2690.  
  2691. /* method: GetCollection */
  2692. Collection   GetCollection(Environment *ev)
  2693. {
  2694.    return SOM_ResolveD(this,HIPicture,HIObject,GetCollection)
  2695.     (this,ev);
  2696. }
  2697.  
  2698. /* method: Init */
  2699. OSStatus   Init(Environment *ev,
  2700.         RefLabel* identifier,
  2701.         Rect* boundingRect)
  2702. {
  2703.    return SOM_ResolveD(this,HIPicture,HIObject,Init)
  2704.     (this,ev,identifier,boundingRect);
  2705. }
  2706.  
  2707. /* method: Terminate */
  2708. void   Terminate(Environment *ev)
  2709. {
  2710.    SOM_ResolveD(this,HIPicture,HIObject,Terminate)
  2711.     (this,ev);
  2712. }
  2713.  
  2714. /* method: Clone */
  2715. HIObject*   Clone(Environment *ev)
  2716. {
  2717.    return SOM_ResolveD(this,HIPicture,HIObject,Clone)
  2718.     (this,ev);
  2719. }
  2720.  
  2721. /* method: Release */
  2722. void   Release(Environment *ev)
  2723. {
  2724.    SOM_ResolveD(this,HIPicture,HIObject,Release)
  2725.     (this,ev);
  2726. }
  2727.  
  2728. /* method: GetOwnerCount */
  2729. ItemCount   GetOwnerCount(Environment *ev)
  2730. {
  2731.    return SOM_ResolveD(this,HIPicture,HIObject,GetOwnerCount)
  2732.     (this,ev);
  2733. }
  2734.  
  2735. /* method: InitFromAERecord */
  2736. OSStatus   InitFromAERecord(Environment *ev,
  2737.         AESubDesc* baseInitializerData,
  2738.         AESubDesc* initializerDataForClass,
  2739.         HIAERecordDataFormat dataFormat)
  2740. {
  2741.    return SOM_ResolveD(this,HIPicture,HIObject,InitFromAERecord)
  2742.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  2743. }
  2744.  
  2745. /* method: WriteToAERecord */
  2746. OSStatus   WriteToAERecord(Environment *ev,
  2747.         AERecord* dataForSubclass,
  2748.         AERecord* objectData,
  2749.         HIAERecordDataFormat dataFormat)
  2750. {
  2751.    return SOM_ResolveD(this,HIPicture,HIObject,WriteToAERecord)
  2752.     (this,ev,dataForSubclass,objectData,dataFormat);
  2753. }
  2754.  
  2755. /* method: CalculateOptimalSize */
  2756. void   CalculateOptimalSize(Environment *ev,
  2757.         SInt16* optimalWidth,
  2758.         SInt16* optimalHeight)
  2759. {
  2760.    SOM_ResolveD(this,HIPicture,HIObject,CalculateOptimalSize)
  2761.     (this,ev,optimalWidth,optimalHeight);
  2762. }
  2763.  
  2764. /* method: GetBoundingRect */
  2765. void   GetBoundingRect(Environment *ev,
  2766.         HICoordinateSystem coordinate,
  2767.         Rect* boundingRect)
  2768. {
  2769.    SOM_ResolveD(this,HIPicture,HIObject,GetBoundingRect)
  2770.     (this,ev,coordinate,boundingRect);
  2771. }
  2772.  
  2773. /* method: SetBoundingRect */
  2774. void   SetBoundingRect(Environment *ev,
  2775.         HICoordinateSystem coordinate,
  2776.         Rect* newBoundingRect)
  2777. {
  2778.    SOM_ResolveD(this,HIPicture,HIObject,SetBoundingRect)
  2779.     (this,ev,coordinate,newBoundingRect);
  2780. }
  2781.  
  2782. /* method: SetPosition */
  2783. void   SetPosition(Environment *ev,
  2784.         HICoordinateSystem coordinate,
  2785.         Point* newPosition)
  2786. {
  2787.    SOM_ResolveD(this,HIPicture,HIObject,SetPosition)
  2788.     (this,ev,coordinate,newPosition);
  2789. }
  2790.  
  2791. /* method: SetSize */
  2792. void   SetSize(Environment *ev,
  2793.         SInt16 width,
  2794.         SInt16 height)
  2795. {
  2796.    SOM_ResolveD(this,HIPicture,HIObject,SetSize)
  2797.     (this,ev,width,height);
  2798. }
  2799.  
  2800. /* method: GetUpdateRect */
  2801. void   GetUpdateRect(Environment *ev,
  2802.         HICoordinateSystem coordinate,
  2803.         Rect* updateRect)
  2804. {
  2805.    SOM_ResolveD(this,HIPicture,HIObject,GetUpdateRect)
  2806.     (this,ev,coordinate,updateRect);
  2807. }
  2808.  
  2809. /* method: Enable */
  2810. void   Enable(Environment *ev)
  2811. {
  2812.    SOM_ResolveD(this,HIPicture,HIObject,Enable)
  2813.     (this,ev);
  2814. }
  2815.  
  2816. /* method: Disable */
  2817. void   Disable(Environment *ev)
  2818. {
  2819.    SOM_ResolveD(this,HIPicture,HIObject,Disable)
  2820.     (this,ev);
  2821. }
  2822.  
  2823. /* method: IsEnabled */
  2824. boolean   IsEnabled(Environment *ev)
  2825. {
  2826.    return SOM_ResolveD(this,HIPicture,HIObject,IsEnabled)
  2827.     (this,ev);
  2828. }
  2829.  
  2830. /* method: Show */
  2831. void   Show(Environment *ev)
  2832. {
  2833.    SOM_ResolveD(this,HIPicture,HIObject,Show)
  2834.     (this,ev);
  2835. }
  2836.  
  2837. /* method: Hide */
  2838. void   Hide(Environment *ev)
  2839. {
  2840.    SOM_ResolveD(this,HIPicture,HIObject,Hide)
  2841.     (this,ev);
  2842. }
  2843.  
  2844. /* method: IsVisible */
  2845. boolean   IsVisible(Environment *ev)
  2846. {
  2847.    return SOM_ResolveD(this,HIPicture,HIObject,IsVisible)
  2848.     (this,ev);
  2849. }
  2850.  
  2851. /* method: HandleAppleEvent */
  2852. OSStatus   HandleAppleEvent(Environment *ev,
  2853.         AEEventClass eventClass,
  2854.         AEEventID eventID,
  2855.         AppleEvent* theEvent,
  2856.         AppleEvent* reply,
  2857.         AEHandlerTableRef handlerTableRef)
  2858. {
  2859.    return SOM_ResolveD(this,HIPicture,HIObject,HandleAppleEvent)
  2860.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  2861. }
  2862.  
  2863. /* method: HandleActivate */
  2864. OSStatus   HandleActivate(Environment *ev,
  2865.         AppleEvent* theEvent,
  2866.         AppleEvent* reply,
  2867.         AEHandlerTableRef handlerTableRef)
  2868. {
  2869.    return SOM_ResolveD(this,HIPicture,HIObject,HandleActivate)
  2870.     (this,ev,theEvent,reply,handlerTableRef);
  2871. }
  2872.  
  2873. /* method: HandleDeactivate */
  2874. OSStatus   HandleDeactivate(Environment *ev,
  2875.         AppleEvent* theEvent,
  2876.         AppleEvent* reply,
  2877.         AEHandlerTableRef handlerTableRef)
  2878. {
  2879.    return SOM_ResolveD(this,HIPicture,HIObject,HandleDeactivate)
  2880.     (this,ev,theEvent,reply,handlerTableRef);
  2881. }
  2882.  
  2883. /* method: HandleNavigation */
  2884. OSStatus   HandleNavigation(Environment *ev,
  2885.         SInt8 key,
  2886.         SInt8 keyCode,
  2887.         EventModifiers modifiers,
  2888.         AppleEvent* theEvent,
  2889.         AppleEvent* reply,
  2890.         AEHandlerTableRef handlerTableRef)
  2891. {
  2892.    return SOM_ResolveD(this,HIPicture,HIObject,HandleNavigation)
  2893.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  2894. }
  2895.  
  2896. /* method: HandleMouseDownInContent */
  2897. OSStatus   HandleMouseDownInContent(Environment *ev,
  2898.         Point* portLocalWhere,
  2899.         EventModifiers modifiers,
  2900.         AppleEvent* theEvent,
  2901.         AppleEvent* reply,
  2902.         AEHandlerTableRef handlerTableRef)
  2903. {
  2904.    return SOM_ResolveD(this,HIPicture,HIObject,HandleMouseDownInContent)
  2905.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2906. }
  2907.  
  2908. /* method: HandleMouseMovedInContent */
  2909. OSStatus   HandleMouseMovedInContent(Environment *ev,
  2910.         Point* portLocalWhere,
  2911.         EventModifiers modifiers,
  2912.         AppleEvent* theEvent,
  2913.         AppleEvent* reply,
  2914.         AEHandlerTableRef handlerTableRef)
  2915. {
  2916.    return SOM_ResolveD(this,HIPicture,HIObject,HandleMouseMovedInContent)
  2917.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2918. }
  2919.  
  2920. /* method: HandleMouseStoppedMovingInContent */
  2921. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  2922.         Point* portLocalWhere,
  2923.         EventModifiers modifiers,
  2924.         AppleEvent* theEvent,
  2925.         AppleEvent* reply,
  2926.         AEHandlerTableRef handlerTableRef)
  2927. {
  2928.    return SOM_ResolveD(this,HIPicture,HIObject,HandleMouseStoppedMovingInContent)
  2929.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2930. }
  2931.  
  2932. /* method: HandleMouseUpInContent */
  2933. OSStatus   HandleMouseUpInContent(Environment *ev,
  2934.         Point* portLocalWhere,
  2935.         EventModifiers modifiers,
  2936.         AppleEvent* theEvent,
  2937.         AppleEvent* reply,
  2938.         AEHandlerTableRef handlerTableRef)
  2939. {
  2940.    return SOM_ResolveD(this,HIPicture,HIObject,HandleMouseUpInContent)
  2941.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  2942. }
  2943.  
  2944. /* method: TakeUserInputFocus */
  2945. void   TakeUserInputFocus(Environment *ev)
  2946. {
  2947.    SOM_ResolveD(this,HIPicture,HIObject,TakeUserInputFocus)
  2948.     (this,ev);
  2949. }
  2950.  
  2951. /* method: ReleaseUserInputFocus */
  2952. void   ReleaseUserInputFocus(Environment *ev)
  2953. {
  2954.    SOM_ResolveD(this,HIPicture,HIObject,ReleaseUserInputFocus)
  2955.     (this,ev);
  2956. }
  2957.  
  2958. /* method: HasUserInputFocus */
  2959. boolean   HasUserInputFocus(Environment *ev)
  2960. {
  2961.    return SOM_ResolveD(this,HIPicture,HIObject,HasUserInputFocus)
  2962.     (this,ev);
  2963. }
  2964.  
  2965. /* method: CanReleaseUserInputFocus */
  2966. boolean   CanReleaseUserInputFocus(Environment *ev)
  2967. {
  2968.    return SOM_ResolveD(this,HIPicture,HIObject,CanReleaseUserInputFocus)
  2969.     (this,ev);
  2970. }
  2971.  
  2972. /* method: SetUserInputFocusFlags */
  2973. void   SetUserInputFocusFlags(Environment *ev,
  2974.         HIUserInputFocusFlags flags)
  2975. {
  2976.    SOM_ResolveD(this,HIPicture,HIObject,SetUserInputFocusFlags)
  2977.     (this,ev,flags);
  2978. }
  2979.  
  2980. /* method: GetUserInputFocusFlags */
  2981. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  2982. {
  2983.    return SOM_ResolveD(this,HIPicture,HIObject,GetUserInputFocusFlags)
  2984.     (this,ev);
  2985. }
  2986.  
  2987. /* method: SetTitle */
  2988. OSStatus   SetTitle(Environment *ev,
  2989.         ConstHIImageRef title,
  2990.         HIAdoptionFlags disposalAdoptionFlags)
  2991. {
  2992.    return SOM_ResolveD(this,HIPicture,HIObject,SetTitle)
  2993.     (this,ev,title,disposalAdoptionFlags);
  2994. }
  2995.  
  2996. /* method: GetTitle */
  2997. OSStatus   GetTitle(Environment *ev,
  2998.         HIImageRef* title)
  2999. {
  3000.    return SOM_ResolveD(this,HIPicture,HIObject,GetTitle)
  3001.     (this,ev,title);
  3002. }
  3003.  
  3004. /* method: Draw */
  3005. void   Draw(Environment *ev,
  3006.         CGrafPtr whichPort,
  3007.         RgnHandle drawRgn)
  3008. {
  3009.    SOM_ResolveD(this,HIPicture,HIObject,Draw)
  3010.     (this,ev,whichPort,drawRgn);
  3011. }
  3012.  
  3013. /* method: Erase */
  3014. void   Erase(Environment *ev,
  3015.         CGrafPtr whichPort,
  3016.         RgnHandle eraseRgn)
  3017. {
  3018.    SOM_ResolveD(this,HIPicture,HIObject,Erase)
  3019.     (this,ev,whichPort,eraseRgn);
  3020. }
  3021.  
  3022. /* method: Invalidate */
  3023. void   Invalidate(Environment *ev)
  3024. {
  3025.    SOM_ResolveD(this,HIPicture,HIObject,Invalidate)
  3026.     (this,ev);
  3027. }
  3028.  
  3029. /* method: GetDrawingMode */
  3030. HIDrawingMode   GetDrawingMode(Environment *ev)
  3031. {
  3032.    return SOM_ResolveD(this,HIPicture,HIObject,GetDrawingMode)
  3033.     (this,ev);
  3034. }
  3035.  
  3036. /* method: SetDrawingMode */
  3037. void   SetDrawingMode(Environment *ev,
  3038.         HIDrawingMode drawingMode)
  3039. {
  3040.    SOM_ResolveD(this,HIPicture,HIObject,SetDrawingMode)
  3041.     (this,ev,drawingMode);
  3042. }
  3043.  
  3044. /* method: SetBackgroundPattern */
  3045. void   SetBackgroundPattern(Environment *ev,
  3046.         PixPatHandle backgroundPattern)
  3047. {
  3048.    SOM_ResolveD(this,HIPicture,HIObject,SetBackgroundPattern)
  3049.     (this,ev,backgroundPattern);
  3050. }
  3051.  
  3052. /* method: GetBackgroundPattern */
  3053. PixPatHandle   GetBackgroundPattern(Environment *ev)
  3054. {
  3055.    return SOM_ResolveD(this,HIPicture,HIObject,GetBackgroundPattern)
  3056.     (this,ev);
  3057. }
  3058.  
  3059. /* method: Cut */
  3060. void   Cut(Environment *ev)
  3061. {
  3062.    SOM_ResolveD(this,HIPicture,HIObject,Cut)
  3063.     (this,ev);
  3064. }
  3065.  
  3066. /* method: Copy */
  3067. void   Copy(Environment *ev)
  3068. {
  3069.    SOM_ResolveD(this,HIPicture,HIObject,Copy)
  3070.     (this,ev);
  3071. }
  3072.  
  3073. /* method: Paste */
  3074. void   Paste(Environment *ev)
  3075. {
  3076.    SOM_ResolveD(this,HIPicture,HIObject,Paste)
  3077.     (this,ev);
  3078. }
  3079.  
  3080. /* method: Clear */
  3081. void   Clear(Environment *ev)
  3082. {
  3083.    SOM_ResolveD(this,HIPicture,HIObject,Clear)
  3084.     (this,ev);
  3085. }
  3086.  
  3087. /* method: GetClipboardSupportFlags */
  3088. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  3089. {
  3090.    return SOM_ResolveD(this,HIPicture,HIObject,GetClipboardSupportFlags)
  3091.     (this,ev);
  3092. }
  3093.  
  3094. /* method: AddStateChangeCallback */
  3095. OSStatus   AddStateChangeCallback(Environment *ev,
  3096.         HIStateChangeCallbackProcPtr changedStateCallback,
  3097.         HIStateChangeCallbackRef* newCallbackRef)
  3098. {
  3099.    return SOM_ResolveD(this,HIPicture,HIObject,AddStateChangeCallback)
  3100.     (this,ev,changedStateCallback,newCallbackRef);
  3101. }
  3102.  
  3103. /* method: RemoveStateChangeCallback */
  3104. OSStatus   RemoveStateChangeCallback(Environment *ev,
  3105.         HIStateChangeCallbackRef callbackRefToRemove)
  3106. {
  3107.    return SOM_ResolveD(this,HIPicture,HIObject,RemoveStateChangeCallback)
  3108.     (this,ev,callbackRefToRemove);
  3109. }
  3110.  
  3111. /* noself procedure: GetHIObjectFromRefLabel */
  3112. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  3113.         RefLabel* identifier,
  3114.         ItemCount requestedObjects,
  3115.         ItemCount* totalObjects,
  3116.         HIObject** theObjects)
  3117. {
  3118. return ((somTD_HIPicture_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  3119.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  3120. }
  3121.  
  3122. /* noself procedure: GetNewHIObject */
  3123. static OSStatus   GetNewHIObject(Environment *ev,
  3124.         AESubDesc* objectInitializer,
  3125.         HIObject** newObject)
  3126. {
  3127. return ((somTD_HIPicture_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  3128.     (ev,objectInitializer,newObject);
  3129. }
  3130.  
  3131. /* noself procedure: GetNewHIObjectFromResource */
  3132. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  3133.         ResID objectInitializerResourceID,
  3134.         HIObject** newObject)
  3135. {
  3136. return ((somTD_HIPicture_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  3137.     (ev,objectInitializerResourceID,newObject);
  3138. }
  3139.  
  3140. /* method: DrawContent */
  3141. void   DrawContent(Environment *ev,
  3142.         CGrafPtr whichPort,
  3143.         RgnHandle drawRgn)
  3144. {
  3145.    SOM_ResolveD(this,HIPicture,HIObject,DrawContent)
  3146.     (this,ev,whichPort,drawRgn);
  3147. }
  3148.  
  3149. /* method: EraseContent */
  3150. void   EraseContent(Environment *ev,
  3151.         CGrafPtr whichPort,
  3152.         RgnHandle regionToErase)
  3153. {
  3154.    SOM_ResolveD(this,HIPicture,HIObject,EraseContent)
  3155.     (this,ev,whichPort,regionToErase);
  3156. }
  3157.  
  3158. /* method: TranslatePoint */
  3159. void   TranslatePoint(Environment *ev,
  3160.         HICoordinateSystem translateFrom,
  3161.         HICoordinateSystem translateTo,
  3162.         Point* sourcePoint,
  3163.         Point* translatedPoint)
  3164. {
  3165.    SOM_ResolveD(this,HIPicture,HIObject,TranslatePoint)
  3166.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  3167. }
  3168.  
  3169. /* method: TranslateRect */
  3170. void   TranslateRect(Environment *ev,
  3171.         HICoordinateSystem translateFrom,
  3172.         HICoordinateSystem translateTo,
  3173.         Rect* sourceRect,
  3174.         Rect* translatedRect)
  3175. {
  3176.    SOM_ResolveD(this,HIPicture,HIObject,TranslateRect)
  3177.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  3178. }
  3179.  
  3180. /* method: StateChanged */
  3181. void   StateChanged(Environment *ev,
  3182.         HIStateChangeCodeCreator selectorCreator,
  3183.         HIStateChangeCode changedCode)
  3184. {
  3185.    SOM_ResolveD(this,HIPicture,HIObject,StateChanged)
  3186.     (this,ev,selectorCreator,changedCode);
  3187. }
  3188.  
  3189. /* method: SetClipboardSupportFlags */
  3190. void   SetClipboardSupportFlags(Environment *ev,
  3191.         HIClipboardSupportFlags flags)
  3192. {
  3193.    SOM_ResolveD(this,HIPicture,HIObject,SetClipboardSupportFlags)
  3194.     (this,ev,flags);
  3195. }
  3196.  
  3197. /* method: Verify */
  3198. OSStatus   Verify(Environment *ev)
  3199. {
  3200.    return SOM_ResolveD(this,HIPicture,HIObject,Verify)
  3201.     (this,ev);
  3202. }
  3203.  
  3204. /* method: somInit */
  3205. void   somInit()
  3206. {
  3207.    SOM_ResolveD(this,HIPicture,SOMObject,somInit)
  3208.     (this);
  3209. }
  3210.  
  3211. /* method: somUninit */
  3212. void   somUninit()
  3213. {
  3214.    SOM_ResolveD(this,HIPicture,SOMObject,somUninit)
  3215.     (this);
  3216. }
  3217.  
  3218. /* method: somDuplicateReference */
  3219. SOMObject*   somDuplicateReference()
  3220. {
  3221.    return SOM_ResolveD(this,HIPicture,SOMObject,somDuplicateReference)
  3222.     (this);
  3223. }
  3224.  
  3225. /* method: somCompareReference */
  3226. boolean   somCompareReference(SOMObject* anObject)
  3227. {
  3228.    return SOM_ResolveD(this,HIPicture,SOMObject,somCompareReference)
  3229.     (this,anObject);
  3230. }
  3231.  
  3232. /* method: somRelease */
  3233. SOMObject*   somRelease()
  3234. {
  3235.    return SOM_ResolveD(this,HIPicture,SOMObject,somRelease)
  3236.     (this);
  3237. }
  3238.  
  3239. /* method: somFree */
  3240. void   somFree()
  3241. {
  3242.    SOM_ResolveD(this,HIPicture,SOMObject,somFree)
  3243.     (this);
  3244. }
  3245.  
  3246. /* method: somCanDelete */
  3247. boolean   somCanDelete()
  3248. {
  3249.    return SOM_ResolveD(this,HIPicture,SOMObject,somCanDelete)
  3250.     (this);
  3251. }
  3252.  
  3253. /* method: somGetClass */
  3254. SOMClass*   somGetClass()
  3255. {
  3256.    return SOM_ResolveD(this,HIPicture,SOMObject,somGetClass)
  3257.     (this);
  3258. }
  3259.  
  3260. /* method: somGetClassName */
  3261. corbastring   somGetClassName()
  3262. {
  3263.    return SOM_ResolveD(this,HIPicture,SOMObject,somGetClassName)
  3264.     (this);
  3265. }
  3266.  
  3267. /* method: somGetSize */
  3268. long   somGetSize()
  3269. {
  3270.    return SOM_ResolveD(this,HIPicture,SOMObject,somGetSize)
  3271.     (this);
  3272. }
  3273.  
  3274. /* method: somIsA */
  3275. boolean   somIsA(SOMClass* aClassObj)
  3276. {
  3277.    return SOM_ResolveD(this,HIPicture,SOMObject,somIsA)
  3278.     (this,aClassObj);
  3279. }
  3280.  
  3281. /* method: somRespondsTo */
  3282. boolean   somRespondsTo(somId mId)
  3283. {
  3284.    return SOM_ResolveD(this,HIPicture,SOMObject,somRespondsTo)
  3285.     (this,mId);
  3286. }
  3287.  
  3288. /* method: somIsInstanceOf */
  3289. boolean   somIsInstanceOf(SOMClass* aClassObj)
  3290. {
  3291.    return SOM_ResolveD(this,HIPicture,SOMObject,somIsInstanceOf)
  3292.     (this,aClassObj);
  3293. }
  3294.  
  3295. /* va_list method: somDispatch */
  3296. /* the va_list invocation form */
  3297. boolean   HIPicture_somDispatch(somToken* retValue,
  3298.         somId methodId,
  3299.         va_list ap)
  3300. {
  3301.    return SOM_ResolveD(this,HIPicture,SOMObject,somDispatch)
  3302.     (this,retValue,methodId,ap);
  3303. }
  3304.  
  3305. /* the varargs invocation form */
  3306. boolean   somDispatch(somToken* retValue,
  3307.         somId methodId,
  3308.         ...)
  3309. {
  3310.    va_list ap;
  3311.    va_start(ap, methodId);
  3312.       boolean __somResult = 
  3313.       (boolean) SOM_ResolveD(this,HIPicture,SOMObject,somDispatch)
  3314.     (this,retValue,methodId,ap);
  3315.    va_end(ap);
  3316.    return __somResult;
  3317. }
  3318.  
  3319. /* va_list method: somClassDispatch */
  3320. /* the va_list invocation form */
  3321. boolean   HIPicture_somClassDispatch(SOMClass* clsObj,
  3322.         somToken* retValue,
  3323.         somId methodId,
  3324.         va_list ap)
  3325. {
  3326.    return SOM_ResolveD(this,HIPicture,SOMObject,somClassDispatch)
  3327.     (this,clsObj,retValue,methodId,ap);
  3328. }
  3329.  
  3330. /* the varargs invocation form */
  3331. boolean   somClassDispatch(SOMClass* clsObj,
  3332.         somToken* retValue,
  3333.         somId methodId,
  3334.         ...)
  3335. {
  3336.    va_list ap;
  3337.    va_start(ap, methodId);
  3338.       boolean __somResult = 
  3339.       (boolean) SOM_ResolveD(this,HIPicture,SOMObject,somClassDispatch)
  3340.     (this,clsObj,retValue,methodId,ap);
  3341.    va_end(ap);
  3342.    return __somResult;
  3343. }
  3344.  
  3345. /* method: somCastObj */
  3346. boolean   somCastObj(SOMClass* cls)
  3347. {
  3348.    return SOM_ResolveD(this,HIPicture,SOMObject,somCastObj)
  3349.     (this,cls);
  3350. }
  3351.  
  3352. /* method: somResetObj */
  3353. boolean   somResetObj()
  3354. {
  3355.    return SOM_ResolveD(this,HIPicture,SOMObject,somResetObj)
  3356.     (this);
  3357. }
  3358.  
  3359. /* method: somPrintSelf */
  3360. SOMObject*   somPrintSelf()
  3361. {
  3362.    return SOM_ResolveD(this,HIPicture,SOMObject,somPrintSelf)
  3363.     (this);
  3364. }
  3365.  
  3366. /* method: somDumpSelf */
  3367. void   somDumpSelf(long level)
  3368. {
  3369.    SOM_ResolveD(this,HIPicture,SOMObject,somDumpSelf)
  3370.     (this,level);
  3371. }
  3372.  
  3373. /* method: somDumpSelfInt */
  3374. void   somDumpSelfInt(long level)
  3375. {
  3376.    SOM_ResolveD(this,HIPicture,SOMObject,somDumpSelfInt)
  3377.     (this,level);
  3378. }
  3379.  
  3380. };   /* HIPicture */
  3381.  
  3382.  
  3383.  
  3384. #endif       /* SOM_HIPicture_xh */
  3385.  
  3386. #ifndef SOM_HIIcon_xh
  3387. #define SOM_HIIcon_xh
  3388.  
  3389. class HIIcon;
  3390.  
  3391. #define HIIcon_MajorVersion 0
  3392. #define HIIcon_MinorVersion 0
  3393.  
  3394. /* C++ SOM defs */
  3395. #include <somcls.xh>
  3396. #include <somcm.xh>
  3397.  
  3398. /* C++ parent defs */
  3399. #ifndef SOM_HIStaticPanel_xh
  3400. #include <HIStaticPanels.xh>
  3401. #endif
  3402.  
  3403. #ifndef HIIcon_API
  3404. #define HIIcon_API
  3405. /*
  3406.  * -- The Class API
  3407.  */
  3408.  
  3409. /*
  3410.  * Start of user-defined types:
  3411.  */
  3412.  
  3413. /*
  3414.  * End of user-defined types.
  3415.  */
  3416.  
  3417. #ifdef OLDIBMSOMAPISUPPORT
  3418. #define HIIconCClassData HIIconClassData
  3419. #define HIIconNewClass(major,minor) somNewVersionedClassReference(HIIcon,major,minor)
  3420. #endif
  3421.  
  3422. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  3423. #define HIIconMetaClass SOMClass
  3424.  
  3425. #if PRAGMA_ALIGN_SUPPORTED
  3426. #  pragma options align=power
  3427. #endif
  3428.  
  3429. /* The API to the HIIcon class object, and the methods it introduces. */
  3430. SOMEXTERN struct HIIconClassDataStructure {
  3431. #ifdef OLDIBMSOMAPISUPPORT
  3432.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  3433. #else
  3434.     long zero;
  3435. #endif
  3436.     somStaticClassInfo *sci;
  3437.     somDToken        instanceDataToken;
  3438.     long reserved [3];
  3439.     somMToken InitIcon;
  3440.     somMToken GetIcon;
  3441.     somMToken SetIcon;
  3442.     somMToken GetAlignment;
  3443.     somMToken SetAlignment;
  3444.     somMToken GetTransform;
  3445.     somMToken SetTransform;
  3446. } SOMDLINK HIIconClassData;
  3447.  
  3448. #if PRAGMA_ALIGN_SUPPORTED
  3449. #  pragma options align=reset
  3450. #endif
  3451.  
  3452. #if !defined(HIIcon_Class_Source) && !defined(SOM_Module_histaticpanels_Source)
  3453. #if PRAGMA_IMPORT_SUPPORTED
  3454. #pragma import list HIIconClassData
  3455. #endif
  3456. #endif
  3457.  
  3458.  
  3459. /*
  3460.  * -- Typedefs for HIIcon Method Procedures
  3461.  */
  3462. SOMEXTERN {
  3463. typedef OSStatus   (* SOMLINK somTD_HIIcon_InitIcon)(HIIcon *somSelf, Environment *ev,
  3464.         RefLabel* identifier,
  3465.         HIWindow* window,
  3466.         Rect* bounds,
  3467.         Handle iconSuite);
  3468. typedef Handle   (* SOMLINK somTD_HIIcon_GetIcon)(HIIcon *somSelf, Environment *ev);
  3469. typedef void   (* SOMLINK somTD_HIIcon_SetIcon)(HIIcon *somSelf, Environment *ev,
  3470.         Handle iconSuite);
  3471. typedef IconAlignmentType   (* SOMLINK somTD_HIIcon_GetAlignment)(HIIcon *somSelf, Environment *ev);
  3472. typedef void   (* SOMLINK somTD_HIIcon_SetAlignment)(HIIcon *somSelf, Environment *ev,
  3473.         IconAlignmentType alignment);
  3474. typedef IconTransformType   (* SOMLINK somTD_HIIcon_GetTransform)(HIIcon *somSelf, Environment *ev);
  3475. typedef void   (* SOMLINK somTD_HIIcon_SetTransform)(HIIcon *somSelf, Environment *ev,
  3476.         IconTransformType transform);
  3477.  
  3478. /*
  3479.  * -- Typedefs for Inherited Methods
  3480.  */
  3481. typedef OSStatus   (* SOMLINK somTD_HIIcon_InitStaticPanel)(HIIcon *somSelf, Environment *ev,
  3482.         RefLabel* identifier,
  3483.         HIWindow* window,
  3484.         Rect* bounds);
  3485. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIIcon_GetEmbeddingParent)(HIIcon *somSelf, Environment *ev);
  3486. typedef OSStatus   (* SOMLINK somTD_HIIcon_InitPanel)(HIIcon *somSelf, Environment *ev,
  3487.         RefLabel* identifier,
  3488.         HIWindow* window,
  3489.         Rect* bounds);
  3490. typedef OSStatus   (* SOMLINK somTD_HIIcon_RegisterInterestInAppleEvent)(HIIcon *somSelf, Environment *ev,
  3491.         AEHandlerTableRef table,
  3492.         AEEventClass eventClass,
  3493.         AEEventID eventID,
  3494.         HIEventRoutingType eventRouting);
  3495. typedef boolean   (* SOMLINK somTD_HIIcon_HasValidContent)(HIIcon *somSelf, Environment *ev);
  3496. typedef OSStatus   (* SOMLINK somTD_HIIcon_GetDeepCollectionItemData)(HIIcon *somSelf, Environment *ev,
  3497.         CollectionTag tag,
  3498.         SInt32 id,
  3499.         ByteCount sizeAllowed,
  3500.         ByteCount* sizeReturned,
  3501.         void* itemData);
  3502. typedef HIWindow*   (* SOMLINK somTD_HIIcon_GetWindow)(HIIcon *somSelf, Environment *ev);
  3503. typedef CGrafPtr   (* SOMLINK somTD_HIIcon_GetPort)(HIIcon *somSelf, Environment *ev);
  3504. typedef void   (* SOMLINK somTD_HIIcon_GetRefLabel)(HIIcon *somSelf, Environment *ev,
  3505.         RefLabel* identifier);
  3506. typedef Collection   (* SOMLINK somTD_HIIcon_GetCollection)(HIIcon *somSelf, Environment *ev);
  3507. typedef OSStatus   (* SOMLINK somTD_HIIcon_Init)(HIIcon *somSelf, Environment *ev,
  3508.         RefLabel* identifier,
  3509.         Rect* boundingRect);
  3510. typedef void   (* SOMLINK somTD_HIIcon_Terminate)(HIIcon *somSelf, Environment *ev);
  3511. typedef HIObject*   (* SOMLINK somTD_HIIcon_Clone)(HIIcon *somSelf, Environment *ev);
  3512. typedef void   (* SOMLINK somTD_HIIcon_Release)(HIIcon *somSelf, Environment *ev);
  3513. typedef ItemCount   (* SOMLINK somTD_HIIcon_GetOwnerCount)(HIIcon *somSelf, Environment *ev);
  3514. typedef OSStatus   (* SOMLINK somTD_HIIcon_InitFromAERecord)(HIIcon *somSelf, Environment *ev,
  3515.         AESubDesc* baseInitializerData,
  3516.         AESubDesc* initializerDataForClass,
  3517.         HIAERecordDataFormat dataFormat);
  3518. typedef OSStatus   (* SOMLINK somTD_HIIcon_WriteToAERecord)(HIIcon *somSelf, Environment *ev,
  3519.         AERecord* dataForSubclass,
  3520.         AERecord* objectData,
  3521.         HIAERecordDataFormat dataFormat);
  3522. typedef void   (* SOMLINK somTD_HIIcon_CalculateOptimalSize)(HIIcon *somSelf, Environment *ev,
  3523.         SInt16* optimalWidth,
  3524.         SInt16* optimalHeight);
  3525. typedef void   (* SOMLINK somTD_HIIcon_GetBoundingRect)(HIIcon *somSelf, Environment *ev,
  3526.         HICoordinateSystem coordinate,
  3527.         Rect* boundingRect);
  3528. typedef void   (* SOMLINK somTD_HIIcon_SetBoundingRect)(HIIcon *somSelf, Environment *ev,
  3529.         HICoordinateSystem coordinate,
  3530.         Rect* newBoundingRect);
  3531. typedef void   (* SOMLINK somTD_HIIcon_SetPosition)(HIIcon *somSelf, Environment *ev,
  3532.         HICoordinateSystem coordinate,
  3533.         Point* newPosition);
  3534. typedef void   (* SOMLINK somTD_HIIcon_SetSize)(HIIcon *somSelf, Environment *ev,
  3535.         SInt16 width,
  3536.         SInt16 height);
  3537. typedef void   (* SOMLINK somTD_HIIcon_GetUpdateRect)(HIIcon *somSelf, Environment *ev,
  3538.         HICoordinateSystem coordinate,
  3539.         Rect* updateRect);
  3540. typedef void   (* SOMLINK somTD_HIIcon_Enable)(HIIcon *somSelf, Environment *ev);
  3541. typedef void   (* SOMLINK somTD_HIIcon_Disable)(HIIcon *somSelf, Environment *ev);
  3542. typedef boolean   (* SOMLINK somTD_HIIcon_IsEnabled)(HIIcon *somSelf, Environment *ev);
  3543. typedef void   (* SOMLINK somTD_HIIcon_Show)(HIIcon *somSelf, Environment *ev);
  3544. typedef void   (* SOMLINK somTD_HIIcon_Hide)(HIIcon *somSelf, Environment *ev);
  3545. typedef boolean   (* SOMLINK somTD_HIIcon_IsVisible)(HIIcon *somSelf, Environment *ev);
  3546. typedef OSStatus   (* SOMLINK somTD_HIIcon_HandleAppleEvent)(HIIcon *somSelf, Environment *ev,
  3547.         AEEventClass eventClass,
  3548.         AEEventID eventID,
  3549.         AppleEvent* theEvent,
  3550.         AppleEvent* reply,
  3551.         AEHandlerTableRef handlerTableRef);
  3552. typedef OSStatus   (* SOMLINK somTD_HIIcon_HandleActivate)(HIIcon *somSelf, Environment *ev,
  3553.         AppleEvent* theEvent,
  3554.         AppleEvent* reply,
  3555.         AEHandlerTableRef handlerTableRef);
  3556. typedef OSStatus   (* SOMLINK somTD_HIIcon_HandleDeactivate)(HIIcon *somSelf, Environment *ev,
  3557.         AppleEvent* theEvent,
  3558.         AppleEvent* reply,
  3559.         AEHandlerTableRef handlerTableRef);
  3560. typedef OSStatus   (* SOMLINK somTD_HIIcon_HandleNavigation)(HIIcon *somSelf, Environment *ev,
  3561.         SInt8 key,
  3562.         SInt8 keyCode,
  3563.         EventModifiers modifiers,
  3564.         AppleEvent* theEvent,
  3565.         AppleEvent* reply,
  3566.         AEHandlerTableRef handlerTableRef);
  3567. typedef OSStatus   (* SOMLINK somTD_HIIcon_HandleMouseDownInContent)(HIIcon *somSelf, Environment *ev,
  3568.         Point* portLocalWhere,
  3569.         EventModifiers modifiers,
  3570.         AppleEvent* theEvent,
  3571.         AppleEvent* reply,
  3572.         AEHandlerTableRef handlerTableRef);
  3573. typedef OSStatus   (* SOMLINK somTD_HIIcon_HandleMouseMovedInContent)(HIIcon *somSelf, Environment *ev,
  3574.         Point* portLocalWhere,
  3575.         EventModifiers modifiers,
  3576.         AppleEvent* theEvent,
  3577.         AppleEvent* reply,
  3578.         AEHandlerTableRef handlerTableRef);
  3579. typedef OSStatus   (* SOMLINK somTD_HIIcon_HandleMouseStoppedMovingInContent)(HIIcon *somSelf, Environment *ev,
  3580.         Point* portLocalWhere,
  3581.         EventModifiers modifiers,
  3582.         AppleEvent* theEvent,
  3583.         AppleEvent* reply,
  3584.         AEHandlerTableRef handlerTableRef);
  3585. typedef OSStatus   (* SOMLINK somTD_HIIcon_HandleMouseUpInContent)(HIIcon *somSelf, Environment *ev,
  3586.         Point* portLocalWhere,
  3587.         EventModifiers modifiers,
  3588.         AppleEvent* theEvent,
  3589.         AppleEvent* reply,
  3590.         AEHandlerTableRef handlerTableRef);
  3591. typedef void   (* SOMLINK somTD_HIIcon_TakeUserInputFocus)(HIIcon *somSelf, Environment *ev);
  3592. typedef void   (* SOMLINK somTD_HIIcon_ReleaseUserInputFocus)(HIIcon *somSelf, Environment *ev);
  3593. typedef boolean   (* SOMLINK somTD_HIIcon_HasUserInputFocus)(HIIcon *somSelf, Environment *ev);
  3594. typedef boolean   (* SOMLINK somTD_HIIcon_CanReleaseUserInputFocus)(HIIcon *somSelf, Environment *ev);
  3595. typedef void   (* SOMLINK somTD_HIIcon_SetUserInputFocusFlags)(HIIcon *somSelf, Environment *ev,
  3596.         HIUserInputFocusFlags flags);
  3597. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIIcon_GetUserInputFocusFlags)(HIIcon *somSelf, Environment *ev);
  3598. typedef OSStatus   (* SOMLINK somTD_HIIcon_SetTitle)(HIIcon *somSelf, Environment *ev,
  3599.         ConstHIImageRef title,
  3600.         HIAdoptionFlags disposalAdoptionFlags);
  3601. typedef OSStatus   (* SOMLINK somTD_HIIcon_GetTitle)(HIIcon *somSelf, Environment *ev,
  3602.         HIImageRef* title);
  3603. typedef void   (* SOMLINK somTD_HIIcon_Draw)(HIIcon *somSelf, Environment *ev,
  3604.         CGrafPtr whichPort,
  3605.         RgnHandle drawRgn);
  3606. typedef void   (* SOMLINK somTD_HIIcon_Erase)(HIIcon *somSelf, Environment *ev,
  3607.         CGrafPtr whichPort,
  3608.         RgnHandle eraseRgn);
  3609. typedef void   (* SOMLINK somTD_HIIcon_Invalidate)(HIIcon *somSelf, Environment *ev);
  3610. typedef HIDrawingMode   (* SOMLINK somTD_HIIcon_GetDrawingMode)(HIIcon *somSelf, Environment *ev);
  3611. typedef void   (* SOMLINK somTD_HIIcon_SetDrawingMode)(HIIcon *somSelf, Environment *ev,
  3612.         HIDrawingMode drawingMode);
  3613. typedef void   (* SOMLINK somTD_HIIcon_SetBackgroundPattern)(HIIcon *somSelf, Environment *ev,
  3614.         PixPatHandle backgroundPattern);
  3615. typedef PixPatHandle   (* SOMLINK somTD_HIIcon_GetBackgroundPattern)(HIIcon *somSelf, Environment *ev);
  3616. typedef void   (* SOMLINK somTD_HIIcon_Cut)(HIIcon *somSelf, Environment *ev);
  3617. typedef void   (* SOMLINK somTD_HIIcon_Copy)(HIIcon *somSelf, Environment *ev);
  3618. typedef void   (* SOMLINK somTD_HIIcon_Paste)(HIIcon *somSelf, Environment *ev);
  3619. typedef void   (* SOMLINK somTD_HIIcon_Clear)(HIIcon *somSelf, Environment *ev);
  3620. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIIcon_GetClipboardSupportFlags)(HIIcon *somSelf, Environment *ev);
  3621. typedef OSStatus   (* SOMLINK somTD_HIIcon_AddStateChangeCallback)(HIIcon *somSelf, Environment *ev,
  3622.         HIStateChangeCallbackProcPtr changedStateCallback,
  3623.         HIStateChangeCallbackRef* newCallbackRef);
  3624. typedef OSStatus   (* SOMLINK somTD_HIIcon_RemoveStateChangeCallback)(HIIcon *somSelf, Environment *ev,
  3625.         HIStateChangeCallbackRef callbackRefToRemove);
  3626. typedef OSStatus   (* SOMLINK somTD_HIIcon_GetHIObjectFromRefLabel)(Environment *ev,
  3627.         RefLabel* identifier,
  3628.         ItemCount requestedObjects,
  3629.         ItemCount* totalObjects,
  3630.         HIObject** theObjects);
  3631. typedef OSStatus   (* SOMLINK somTD_HIIcon_GetNewHIObject)(Environment *ev,
  3632.         AESubDesc* objectInitializer,
  3633.         HIObject** newObject);
  3634. typedef OSStatus   (* SOMLINK somTD_HIIcon_GetNewHIObjectFromResource)(Environment *ev,
  3635.         ResID objectInitializerResourceID,
  3636.         HIObject** newObject);
  3637. typedef void   (* SOMLINK somTD_HIIcon_DrawContent)(HIIcon *somSelf, Environment *ev,
  3638.         CGrafPtr whichPort,
  3639.         RgnHandle drawRgn);
  3640. typedef void   (* SOMLINK somTD_HIIcon_EraseContent)(HIIcon *somSelf, Environment *ev,
  3641.         CGrafPtr whichPort,
  3642.         RgnHandle regionToErase);
  3643. typedef void   (* SOMLINK somTD_HIIcon_TranslatePoint)(HIIcon *somSelf, Environment *ev,
  3644.         HICoordinateSystem translateFrom,
  3645.         HICoordinateSystem translateTo,
  3646.         Point* sourcePoint,
  3647.         Point* translatedPoint);
  3648. typedef void   (* SOMLINK somTD_HIIcon_TranslateRect)(HIIcon *somSelf, Environment *ev,
  3649.         HICoordinateSystem translateFrom,
  3650.         HICoordinateSystem translateTo,
  3651.         Rect* sourceRect,
  3652.         Rect* translatedRect);
  3653. typedef void   (* SOMLINK somTD_HIIcon_StateChanged)(HIIcon *somSelf, Environment *ev,
  3654.         HIStateChangeCodeCreator selectorCreator,
  3655.         HIStateChangeCode changedCode);
  3656. typedef void   (* SOMLINK somTD_HIIcon_SetClipboardSupportFlags)(HIIcon *somSelf, Environment *ev,
  3657.         HIClipboardSupportFlags flags);
  3658. typedef OSStatus   (* SOMLINK somTD_HIIcon_Verify)(HIIcon *somSelf, Environment *ev);
  3659. typedef void   (* SOMLINK somTD_HIIcon_somInit)(HIIcon *somSelf);
  3660. typedef void   (* SOMLINK somTD_HIIcon_somUninit)(HIIcon *somSelf);
  3661. typedef SOMObject*   (* SOMLINK somTD_HIIcon_somDuplicateReference)(HIIcon *somSelf);
  3662. typedef boolean   (* SOMLINK somTD_HIIcon_somCompareReference)(HIIcon *somSelf,
  3663.         SOMObject* anObject);
  3664. typedef SOMObject*   (* SOMLINK somTD_HIIcon_somRelease)(HIIcon *somSelf);
  3665. typedef void   (* SOMLINK somTD_HIIcon_somFree)(HIIcon *somSelf);
  3666. typedef boolean   (* SOMLINK somTD_HIIcon_somCanDelete)(HIIcon *somSelf);
  3667. typedef SOMClass*   (* SOMLINK somTD_HIIcon_somGetClass)(HIIcon *somSelf);
  3668. typedef corbastring   (* SOMLINK somTD_HIIcon_somGetClassName)(HIIcon *somSelf);
  3669. typedef long   (* SOMLINK somTD_HIIcon_somGetSize)(HIIcon *somSelf);
  3670. typedef boolean   (* SOMLINK somTD_HIIcon_somIsA)(HIIcon *somSelf,
  3671.         SOMClass* aClassObj);
  3672. typedef boolean   (* SOMLINK somTD_HIIcon_somRespondsTo)(HIIcon *somSelf,
  3673.         somId mId);
  3674. typedef boolean   (* SOMLINK somTD_HIIcon_somIsInstanceOf)(HIIcon *somSelf,
  3675.         SOMClass* aClassObj);
  3676. typedef boolean   (* SOMLINK somTD_HIIcon_somDispatch)(HIIcon *somSelf,
  3677.         somToken* retValue,
  3678.         somId methodId,
  3679.         va_list ap);
  3680. typedef boolean   (* SOMLINK somTD_HIIcon_somClassDispatch)(HIIcon *somSelf,
  3681.         SOMClass* clsObj,
  3682.         somToken* retValue,
  3683.         somId methodId,
  3684.         va_list ap);
  3685. typedef boolean   (* SOMLINK somTD_HIIcon_somCastObj)(HIIcon *somSelf,
  3686.         SOMClass* cls);
  3687. typedef boolean   (* SOMLINK somTD_HIIcon_somResetObj)(HIIcon *somSelf);
  3688. typedef SOMObject*   (* SOMLINK somTD_HIIcon_somPrintSelf)(HIIcon *somSelf);
  3689. typedef void   (* SOMLINK somTD_HIIcon_somDumpSelf)(HIIcon *somSelf,
  3690.         long level);
  3691. typedef void   (* SOMLINK somTD_HIIcon_somDumpSelfInt)(HIIcon *somSelf,
  3692.         long level);
  3693. }
  3694.  
  3695. #endif /* HIIcon_API */
  3696.  
  3697.  
  3698. /*
  3699.  * -- This emitter treats Method Tokens as Thunks by default.
  3700.  * -- Use the sc modifier "nothunks" to change this default
  3701.  */
  3702. #undef somresolve_
  3703. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  3704.  
  3705. /*
  3706.  * -- The C++ Wrapper Class for HIIcon
  3707.  */
  3708. class HIIcon : public HIStaticPanel
  3709. {
  3710. public:
  3711.  
  3712. // HIIcon::new registers use of the class object, and then uses somNew
  3713. // to allocate memory and load the object method table pointer. 
  3714. void *operator new(size_t size)
  3715. {
  3716.     SOM_IgnoreWarning(size);
  3717.     // Allocate memory using the default allocator for HIIcon, and
  3718.     // clear mem & set method table pointer, call basic initialization
  3719.     return (void*) somNewObject(HIIcon);
  3720. }
  3721.  
  3722. // HIIcon::delete uses the default deallocator for the object's class.
  3723. void operator delete(void * obj)
  3724. {
  3725.     if (obj) {
  3726.         SOM_Resolve(obj,SOMObject,somFree)
  3727.            ( (SOMObject*) obj );
  3728.     }
  3729. }
  3730.  
  3731. /* method: InitIcon */
  3732. OSStatus   InitIcon(Environment *ev,
  3733.         RefLabel* identifier,
  3734.         HIWindow* window,
  3735.         Rect* bounds,
  3736.         Handle iconSuite)
  3737. {
  3738.    return SOM_ResolveD(this,HIIcon,HIIcon,InitIcon)
  3739.     (this,ev,identifier,window,bounds,iconSuite);
  3740. }
  3741.  
  3742. /* method: GetIcon */
  3743. Handle   GetIcon(Environment *ev)
  3744. {
  3745.    return SOM_ResolveD(this,HIIcon,HIIcon,GetIcon)
  3746.     (this,ev);
  3747. }
  3748.  
  3749. /* method: SetIcon */
  3750. void   SetIcon(Environment *ev,
  3751.         Handle iconSuite)
  3752. {
  3753.    SOM_ResolveD(this,HIIcon,HIIcon,SetIcon)
  3754.     (this,ev,iconSuite);
  3755. }
  3756.  
  3757. /* method: GetAlignment */
  3758. IconAlignmentType   GetAlignment(Environment *ev)
  3759. {
  3760.    return SOM_ResolveD(this,HIIcon,HIIcon,GetAlignment)
  3761.     (this,ev);
  3762. }
  3763.  
  3764. /* method: SetAlignment */
  3765. void   SetAlignment(Environment *ev,
  3766.         IconAlignmentType alignment)
  3767. {
  3768.    SOM_ResolveD(this,HIIcon,HIIcon,SetAlignment)
  3769.     (this,ev,alignment);
  3770. }
  3771.  
  3772. /* method: GetTransform */
  3773. IconTransformType   GetTransform(Environment *ev)
  3774. {
  3775.    return SOM_ResolveD(this,HIIcon,HIIcon,GetTransform)
  3776.     (this,ev);
  3777. }
  3778.  
  3779. /* method: SetTransform */
  3780. void   SetTransform(Environment *ev,
  3781.         IconTransformType transform)
  3782. {
  3783.    SOM_ResolveD(this,HIIcon,HIIcon,SetTransform)
  3784.     (this,ev,transform);
  3785. }
  3786.  
  3787.  
  3788. /*
  3789.  * -- Inherited methods
  3790.  */
  3791. /* method: InitStaticPanel */
  3792. OSStatus   InitStaticPanel(Environment *ev,
  3793.         RefLabel* identifier,
  3794.         HIWindow* window,
  3795.         Rect* bounds)
  3796. {
  3797.    return SOM_ResolveD(this,HIIcon,HIStaticPanel,InitStaticPanel)
  3798.     (this,ev,identifier,window,bounds);
  3799. }
  3800.  
  3801. /* method: GetEmbeddingParent */
  3802. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  3803. {
  3804.    return SOM_ResolveD(this,HIIcon,HIPanel,GetEmbeddingParent)
  3805.     (this,ev);
  3806. }
  3807.  
  3808. /* method: InitPanel */
  3809. OSStatus   InitPanel(Environment *ev,
  3810.         RefLabel* identifier,
  3811.         HIWindow* window,
  3812.         Rect* bounds)
  3813. {
  3814.    return SOM_ResolveD(this,HIIcon,HIPanel,InitPanel)
  3815.     (this,ev,identifier,window,bounds);
  3816. }
  3817.  
  3818. /* method: RegisterInterestInAppleEvent */
  3819. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  3820.         AEHandlerTableRef table,
  3821.         AEEventClass eventClass,
  3822.         AEEventID eventID,
  3823.         HIEventRoutingType eventRouting)
  3824. {
  3825.    return SOM_ResolveD(this,HIIcon,HIPanel,RegisterInterestInAppleEvent)
  3826.     (this,ev,table,eventClass,eventID,eventRouting);
  3827. }
  3828.  
  3829. /* method: HasValidContent */
  3830. boolean   HasValidContent(Environment *ev)
  3831. {
  3832.    return SOM_ResolveD(this,HIIcon,HIPanel,HasValidContent)
  3833.     (this,ev);
  3834. }
  3835.  
  3836. /* method: GetDeepCollectionItemData */
  3837. OSStatus   GetDeepCollectionItemData(Environment *ev,
  3838.         CollectionTag tag,
  3839.         SInt32 id,
  3840.         ByteCount sizeAllowed,
  3841.         ByteCount* sizeReturned,
  3842.         void* itemData)
  3843. {
  3844.    return SOM_ResolveD(this,HIIcon,HIPanel,GetDeepCollectionItemData)
  3845.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  3846. }
  3847.  
  3848. /* method: GetWindow */
  3849. HIWindow*   GetWindow(Environment *ev)
  3850. {
  3851.    return SOM_ResolveD(this,HIIcon,HIObject,GetWindow)
  3852.     (this,ev);
  3853. }
  3854.  
  3855. /* method: GetPort */
  3856. CGrafPtr   GetPort(Environment *ev)
  3857. {
  3858.    return SOM_ResolveD(this,HIIcon,HIObject,GetPort)
  3859.     (this,ev);
  3860. }
  3861.  
  3862. /* method: GetRefLabel */
  3863. void   GetRefLabel(Environment *ev,
  3864.         RefLabel* identifier)
  3865. {
  3866.    SOM_ResolveD(this,HIIcon,HIObject,GetRefLabel)
  3867.     (this,ev,identifier);
  3868. }
  3869.  
  3870. /* method: GetCollection */
  3871. Collection   GetCollection(Environment *ev)
  3872. {
  3873.    return SOM_ResolveD(this,HIIcon,HIObject,GetCollection)
  3874.     (this,ev);
  3875. }
  3876.  
  3877. /* method: Init */
  3878. OSStatus   Init(Environment *ev,
  3879.         RefLabel* identifier,
  3880.         Rect* boundingRect)
  3881. {
  3882.    return SOM_ResolveD(this,HIIcon,HIObject,Init)
  3883.     (this,ev,identifier,boundingRect);
  3884. }
  3885.  
  3886. /* method: Terminate */
  3887. void   Terminate(Environment *ev)
  3888. {
  3889.    SOM_ResolveD(this,HIIcon,HIObject,Terminate)
  3890.     (this,ev);
  3891. }
  3892.  
  3893. /* method: Clone */
  3894. HIObject*   Clone(Environment *ev)
  3895. {
  3896.    return SOM_ResolveD(this,HIIcon,HIObject,Clone)
  3897.     (this,ev);
  3898. }
  3899.  
  3900. /* method: Release */
  3901. void   Release(Environment *ev)
  3902. {
  3903.    SOM_ResolveD(this,HIIcon,HIObject,Release)
  3904.     (this,ev);
  3905. }
  3906.  
  3907. /* method: GetOwnerCount */
  3908. ItemCount   GetOwnerCount(Environment *ev)
  3909. {
  3910.    return SOM_ResolveD(this,HIIcon,HIObject,GetOwnerCount)
  3911.     (this,ev);
  3912. }
  3913.  
  3914. /* method: InitFromAERecord */
  3915. OSStatus   InitFromAERecord(Environment *ev,
  3916.         AESubDesc* baseInitializerData,
  3917.         AESubDesc* initializerDataForClass,
  3918.         HIAERecordDataFormat dataFormat)
  3919. {
  3920.    return SOM_ResolveD(this,HIIcon,HIObject,InitFromAERecord)
  3921.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  3922. }
  3923.  
  3924. /* method: WriteToAERecord */
  3925. OSStatus   WriteToAERecord(Environment *ev,
  3926.         AERecord* dataForSubclass,
  3927.         AERecord* objectData,
  3928.         HIAERecordDataFormat dataFormat)
  3929. {
  3930.    return SOM_ResolveD(this,HIIcon,HIObject,WriteToAERecord)
  3931.     (this,ev,dataForSubclass,objectData,dataFormat);
  3932. }
  3933.  
  3934. /* method: CalculateOptimalSize */
  3935. void   CalculateOptimalSize(Environment *ev,
  3936.         SInt16* optimalWidth,
  3937.         SInt16* optimalHeight)
  3938. {
  3939.    SOM_ResolveD(this,HIIcon,HIObject,CalculateOptimalSize)
  3940.     (this,ev,optimalWidth,optimalHeight);
  3941. }
  3942.  
  3943. /* method: GetBoundingRect */
  3944. void   GetBoundingRect(Environment *ev,
  3945.         HICoordinateSystem coordinate,
  3946.         Rect* boundingRect)
  3947. {
  3948.    SOM_ResolveD(this,HIIcon,HIObject,GetBoundingRect)
  3949.     (this,ev,coordinate,boundingRect);
  3950. }
  3951.  
  3952. /* method: SetBoundingRect */
  3953. void   SetBoundingRect(Environment *ev,
  3954.         HICoordinateSystem coordinate,
  3955.         Rect* newBoundingRect)
  3956. {
  3957.    SOM_ResolveD(this,HIIcon,HIObject,SetBoundingRect)
  3958.     (this,ev,coordinate,newBoundingRect);
  3959. }
  3960.  
  3961. /* method: SetPosition */
  3962. void   SetPosition(Environment *ev,
  3963.         HICoordinateSystem coordinate,
  3964.         Point* newPosition)
  3965. {
  3966.    SOM_ResolveD(this,HIIcon,HIObject,SetPosition)
  3967.     (this,ev,coordinate,newPosition);
  3968. }
  3969.  
  3970. /* method: SetSize */
  3971. void   SetSize(Environment *ev,
  3972.         SInt16 width,
  3973.         SInt16 height)
  3974. {
  3975.    SOM_ResolveD(this,HIIcon,HIObject,SetSize)
  3976.     (this,ev,width,height);
  3977. }
  3978.  
  3979. /* method: GetUpdateRect */
  3980. void   GetUpdateRect(Environment *ev,
  3981.         HICoordinateSystem coordinate,
  3982.         Rect* updateRect)
  3983. {
  3984.    SOM_ResolveD(this,HIIcon,HIObject,GetUpdateRect)
  3985.     (this,ev,coordinate,updateRect);
  3986. }
  3987.  
  3988. /* method: Enable */
  3989. void   Enable(Environment *ev)
  3990. {
  3991.    SOM_ResolveD(this,HIIcon,HIObject,Enable)
  3992.     (this,ev);
  3993. }
  3994.  
  3995. /* method: Disable */
  3996. void   Disable(Environment *ev)
  3997. {
  3998.    SOM_ResolveD(this,HIIcon,HIObject,Disable)
  3999.     (this,ev);
  4000. }
  4001.  
  4002. /* method: IsEnabled */
  4003. boolean   IsEnabled(Environment *ev)
  4004. {
  4005.    return SOM_ResolveD(this,HIIcon,HIObject,IsEnabled)
  4006.     (this,ev);
  4007. }
  4008.  
  4009. /* method: Show */
  4010. void   Show(Environment *ev)
  4011. {
  4012.    SOM_ResolveD(this,HIIcon,HIObject,Show)
  4013.     (this,ev);
  4014. }
  4015.  
  4016. /* method: Hide */
  4017. void   Hide(Environment *ev)
  4018. {
  4019.    SOM_ResolveD(this,HIIcon,HIObject,Hide)
  4020.     (this,ev);
  4021. }
  4022.  
  4023. /* method: IsVisible */
  4024. boolean   IsVisible(Environment *ev)
  4025. {
  4026.    return SOM_ResolveD(this,HIIcon,HIObject,IsVisible)
  4027.     (this,ev);
  4028. }
  4029.  
  4030. /* method: HandleAppleEvent */
  4031. OSStatus   HandleAppleEvent(Environment *ev,
  4032.         AEEventClass eventClass,
  4033.         AEEventID eventID,
  4034.         AppleEvent* theEvent,
  4035.         AppleEvent* reply,
  4036.         AEHandlerTableRef handlerTableRef)
  4037. {
  4038.    return SOM_ResolveD(this,HIIcon,HIObject,HandleAppleEvent)
  4039.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  4040. }
  4041.  
  4042. /* method: HandleActivate */
  4043. OSStatus   HandleActivate(Environment *ev,
  4044.         AppleEvent* theEvent,
  4045.         AppleEvent* reply,
  4046.         AEHandlerTableRef handlerTableRef)
  4047. {
  4048.    return SOM_ResolveD(this,HIIcon,HIObject,HandleActivate)
  4049.     (this,ev,theEvent,reply,handlerTableRef);
  4050. }
  4051.  
  4052. /* method: HandleDeactivate */
  4053. OSStatus   HandleDeactivate(Environment *ev,
  4054.         AppleEvent* theEvent,
  4055.         AppleEvent* reply,
  4056.         AEHandlerTableRef handlerTableRef)
  4057. {
  4058.    return SOM_ResolveD(this,HIIcon,HIObject,HandleDeactivate)
  4059.     (this,ev,theEvent,reply,handlerTableRef);
  4060. }
  4061.  
  4062. /* method: HandleNavigation */
  4063. OSStatus   HandleNavigation(Environment *ev,
  4064.         SInt8 key,
  4065.         SInt8 keyCode,
  4066.         EventModifiers modifiers,
  4067.         AppleEvent* theEvent,
  4068.         AppleEvent* reply,
  4069.         AEHandlerTableRef handlerTableRef)
  4070. {
  4071.    return SOM_ResolveD(this,HIIcon,HIObject,HandleNavigation)
  4072.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  4073. }
  4074.  
  4075. /* method: HandleMouseDownInContent */
  4076. OSStatus   HandleMouseDownInContent(Environment *ev,
  4077.         Point* portLocalWhere,
  4078.         EventModifiers modifiers,
  4079.         AppleEvent* theEvent,
  4080.         AppleEvent* reply,
  4081.         AEHandlerTableRef handlerTableRef)
  4082. {
  4083.    return SOM_ResolveD(this,HIIcon,HIObject,HandleMouseDownInContent)
  4084.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  4085. }
  4086.  
  4087. /* method: HandleMouseMovedInContent */
  4088. OSStatus   HandleMouseMovedInContent(Environment *ev,
  4089.         Point* portLocalWhere,
  4090.         EventModifiers modifiers,
  4091.         AppleEvent* theEvent,
  4092.         AppleEvent* reply,
  4093.         AEHandlerTableRef handlerTableRef)
  4094. {
  4095.    return SOM_ResolveD(this,HIIcon,HIObject,HandleMouseMovedInContent)
  4096.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  4097. }
  4098.  
  4099. /* method: HandleMouseStoppedMovingInContent */
  4100. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  4101.         Point* portLocalWhere,
  4102.         EventModifiers modifiers,
  4103.         AppleEvent* theEvent,
  4104.         AppleEvent* reply,
  4105.         AEHandlerTableRef handlerTableRef)
  4106. {
  4107.    return SOM_ResolveD(this,HIIcon,HIObject,HandleMouseStoppedMovingInContent)
  4108.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  4109. }
  4110.  
  4111. /* method: HandleMouseUpInContent */
  4112. OSStatus   HandleMouseUpInContent(Environment *ev,
  4113.         Point* portLocalWhere,
  4114.         EventModifiers modifiers,
  4115.         AppleEvent* theEvent,
  4116.         AppleEvent* reply,
  4117.         AEHandlerTableRef handlerTableRef)
  4118. {
  4119.    return SOM_ResolveD(this,HIIcon,HIObject,HandleMouseUpInContent)
  4120.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  4121. }
  4122.  
  4123. /* method: TakeUserInputFocus */
  4124. void   TakeUserInputFocus(Environment *ev)
  4125. {
  4126.    SOM_ResolveD(this,HIIcon,HIObject,TakeUserInputFocus)
  4127.     (this,ev);
  4128. }
  4129.  
  4130. /* method: ReleaseUserInputFocus */
  4131. void   ReleaseUserInputFocus(Environment *ev)
  4132. {
  4133.    SOM_ResolveD(this,HIIcon,HIObject,ReleaseUserInputFocus)
  4134.     (this,ev);
  4135. }
  4136.  
  4137. /* method: HasUserInputFocus */
  4138. boolean   HasUserInputFocus(Environment *ev)
  4139. {
  4140.    return SOM_ResolveD(this,HIIcon,HIObject,HasUserInputFocus)
  4141.     (this,ev);
  4142. }
  4143.  
  4144. /* method: CanReleaseUserInputFocus */
  4145. boolean   CanReleaseUserInputFocus(Environment *ev)
  4146. {
  4147.    return SOM_ResolveD(this,HIIcon,HIObject,CanReleaseUserInputFocus)
  4148.     (this,ev);
  4149. }
  4150.  
  4151. /* method: SetUserInputFocusFlags */
  4152. void   SetUserInputFocusFlags(Environment *ev,
  4153.         HIUserInputFocusFlags flags)
  4154. {
  4155.    SOM_ResolveD(this,HIIcon,HIObject,SetUserInputFocusFlags)
  4156.     (this,ev,flags);
  4157. }
  4158.  
  4159. /* method: GetUserInputFocusFlags */
  4160. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  4161. {
  4162.    return SOM_ResolveD(this,HIIcon,HIObject,GetUserInputFocusFlags)
  4163.     (this,ev);
  4164. }
  4165.  
  4166. /* method: SetTitle */
  4167. OSStatus   SetTitle(Environment *ev,
  4168.         ConstHIImageRef title,
  4169.         HIAdoptionFlags disposalAdoptionFlags)
  4170. {
  4171.    return SOM_ResolveD(this,HIIcon,HIObject,SetTitle)
  4172.     (this,ev,title,disposalAdoptionFlags);
  4173. }
  4174.  
  4175. /* method: GetTitle */
  4176. OSStatus   GetTitle(Environment *ev,
  4177.         HIImageRef* title)
  4178. {
  4179.    return SOM_ResolveD(this,HIIcon,HIObject,GetTitle)
  4180.     (this,ev,title);
  4181. }
  4182.  
  4183. /* method: Draw */
  4184. void   Draw(Environment *ev,
  4185.         CGrafPtr whichPort,
  4186.         RgnHandle drawRgn)
  4187. {
  4188.    SOM_ResolveD(this,HIIcon,HIObject,Draw)
  4189.     (this,ev,whichPort,drawRgn);
  4190. }
  4191.  
  4192. /* method: Erase */
  4193. void   Erase(Environment *ev,
  4194.         CGrafPtr whichPort,
  4195.         RgnHandle eraseRgn)
  4196. {
  4197.    SOM_ResolveD(this,HIIcon,HIObject,Erase)
  4198.     (this,ev,whichPort,eraseRgn);
  4199. }
  4200.  
  4201. /* method: Invalidate */
  4202. void   Invalidate(Environment *ev)
  4203. {
  4204.    SOM_ResolveD(this,HIIcon,HIObject,Invalidate)
  4205.     (this,ev);
  4206. }
  4207.  
  4208. /* method: GetDrawingMode */
  4209. HIDrawingMode   GetDrawingMode(Environment *ev)
  4210. {
  4211.    return SOM_ResolveD(this,HIIcon,HIObject,GetDrawingMode)
  4212.     (this,ev);
  4213. }
  4214.  
  4215. /* method: SetDrawingMode */
  4216. void   SetDrawingMode(Environment *ev,
  4217.         HIDrawingMode drawingMode)
  4218. {
  4219.    SOM_ResolveD(this,HIIcon,HIObject,SetDrawingMode)
  4220.     (this,ev,drawingMode);
  4221. }
  4222.  
  4223. /* method: SetBackgroundPattern */
  4224. void   SetBackgroundPattern(Environment *ev,
  4225.         PixPatHandle backgroundPattern)
  4226. {
  4227.    SOM_ResolveD(this,HIIcon,HIObject,SetBackgroundPattern)
  4228.     (this,ev,backgroundPattern);
  4229. }
  4230.  
  4231. /* method: GetBackgroundPattern */
  4232. PixPatHandle   GetBackgroundPattern(Environment *ev)
  4233. {
  4234.    return SOM_ResolveD(this,HIIcon,HIObject,GetBackgroundPattern)
  4235.     (this,ev);
  4236. }
  4237.  
  4238. /* method: Cut */
  4239. void   Cut(Environment *ev)
  4240. {
  4241.    SOM_ResolveD(this,HIIcon,HIObject,Cut)
  4242.     (this,ev);
  4243. }
  4244.  
  4245. /* method: Copy */
  4246. void   Copy(Environment *ev)
  4247. {
  4248.    SOM_ResolveD(this,HIIcon,HIObject,Copy)
  4249.     (this,ev);
  4250. }
  4251.  
  4252. /* method: Paste */
  4253. void   Paste(Environment *ev)
  4254. {
  4255.    SOM_ResolveD(this,HIIcon,HIObject,Paste)
  4256.     (this,ev);
  4257. }
  4258.  
  4259. /* method: Clear */
  4260. void   Clear(Environment *ev)
  4261. {
  4262.    SOM_ResolveD(this,HIIcon,HIObject,Clear)
  4263.     (this,ev);
  4264. }
  4265.  
  4266. /* method: GetClipboardSupportFlags */
  4267. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  4268. {
  4269.    return SOM_ResolveD(this,HIIcon,HIObject,GetClipboardSupportFlags)
  4270.     (this,ev);
  4271. }
  4272.  
  4273. /* method: AddStateChangeCallback */
  4274. OSStatus   AddStateChangeCallback(Environment *ev,
  4275.         HIStateChangeCallbackProcPtr changedStateCallback,
  4276.         HIStateChangeCallbackRef* newCallbackRef)
  4277. {
  4278.    return SOM_ResolveD(this,HIIcon,HIObject,AddStateChangeCallback)
  4279.     (this,ev,changedStateCallback,newCallbackRef);
  4280. }
  4281.  
  4282. /* method: RemoveStateChangeCallback */
  4283. OSStatus   RemoveStateChangeCallback(Environment *ev,
  4284.         HIStateChangeCallbackRef callbackRefToRemove)
  4285. {
  4286.    return SOM_ResolveD(this,HIIcon,HIObject,RemoveStateChangeCallback)
  4287.     (this,ev,callbackRefToRemove);
  4288. }
  4289.  
  4290. /* noself procedure: GetHIObjectFromRefLabel */
  4291. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  4292.         RefLabel* identifier,
  4293.         ItemCount requestedObjects,
  4294.         ItemCount* totalObjects,
  4295.         HIObject** theObjects)
  4296. {
  4297. return ((somTD_HIIcon_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  4298.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  4299. }
  4300.  
  4301. /* noself procedure: GetNewHIObject */
  4302. static OSStatus   GetNewHIObject(Environment *ev,
  4303.         AESubDesc* objectInitializer,
  4304.         HIObject** newObject)
  4305. {
  4306. return ((somTD_HIIcon_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  4307.     (ev,objectInitializer,newObject);
  4308. }
  4309.  
  4310. /* noself procedure: GetNewHIObjectFromResource */
  4311. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  4312.         ResID objectInitializerResourceID,
  4313.         HIObject** newObject)
  4314. {
  4315. return ((somTD_HIIcon_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  4316.     (ev,objectInitializerResourceID,newObject);
  4317. }
  4318.  
  4319. /* method: DrawContent */
  4320. void   DrawContent(Environment *ev,
  4321.         CGrafPtr whichPort,
  4322.         RgnHandle drawRgn)
  4323. {
  4324.    SOM_ResolveD(this,HIIcon,HIObject,DrawContent)
  4325.     (this,ev,whichPort,drawRgn);
  4326. }
  4327.  
  4328. /* method: EraseContent */
  4329. void   EraseContent(Environment *ev,
  4330.         CGrafPtr whichPort,
  4331.         RgnHandle regionToErase)
  4332. {
  4333.    SOM_ResolveD(this,HIIcon,HIObject,EraseContent)
  4334.     (this,ev,whichPort,regionToErase);
  4335. }
  4336.  
  4337. /* method: TranslatePoint */
  4338. void   TranslatePoint(Environment *ev,
  4339.         HICoordinateSystem translateFrom,
  4340.         HICoordinateSystem translateTo,
  4341.         Point* sourcePoint,
  4342.         Point* translatedPoint)
  4343. {
  4344.    SOM_ResolveD(this,HIIcon,HIObject,TranslatePoint)
  4345.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  4346. }
  4347.  
  4348. /* method: TranslateRect */
  4349. void   TranslateRect(Environment *ev,
  4350.         HICoordinateSystem translateFrom,
  4351.         HICoordinateSystem translateTo,
  4352.         Rect* sourceRect,
  4353.         Rect* translatedRect)
  4354. {
  4355.    SOM_ResolveD(this,HIIcon,HIObject,TranslateRect)
  4356.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  4357. }
  4358.  
  4359. /* method: StateChanged */
  4360. void   StateChanged(Environment *ev,
  4361.         HIStateChangeCodeCreator selectorCreator,
  4362.         HIStateChangeCode changedCode)
  4363. {
  4364.    SOM_ResolveD(this,HIIcon,HIObject,StateChanged)
  4365.     (this,ev,selectorCreator,changedCode);
  4366. }
  4367.  
  4368. /* method: SetClipboardSupportFlags */
  4369. void   SetClipboardSupportFlags(Environment *ev,
  4370.         HIClipboardSupportFlags flags)
  4371. {
  4372.    SOM_ResolveD(this,HIIcon,HIObject,SetClipboardSupportFlags)
  4373.     (this,ev,flags);
  4374. }
  4375.  
  4376. /* method: Verify */
  4377. OSStatus   Verify(Environment *ev)
  4378. {
  4379.    return SOM_ResolveD(this,HIIcon,HIObject,Verify)
  4380.     (this,ev);
  4381. }
  4382.  
  4383. /* method: somInit */
  4384. void   somInit()
  4385. {
  4386.    SOM_ResolveD(this,HIIcon,SOMObject,somInit)
  4387.     (this);
  4388. }
  4389.  
  4390. /* method: somUninit */
  4391. void   somUninit()
  4392. {
  4393.    SOM_ResolveD(this,HIIcon,SOMObject,somUninit)
  4394.     (this);
  4395. }
  4396.  
  4397. /* method: somDuplicateReference */
  4398. SOMObject*   somDuplicateReference()
  4399. {
  4400.    return SOM_ResolveD(this,HIIcon,SOMObject,somDuplicateReference)
  4401.     (this);
  4402. }
  4403.  
  4404. /* method: somCompareReference */
  4405. boolean   somCompareReference(SOMObject* anObject)
  4406. {
  4407.    return SOM_ResolveD(this,HIIcon,SOMObject,somCompareReference)
  4408.     (this,anObject);
  4409. }
  4410.  
  4411. /* method: somRelease */
  4412. SOMObject*   somRelease()
  4413. {
  4414.    return SOM_ResolveD(this,HIIcon,SOMObject,somRelease)
  4415.     (this);
  4416. }
  4417.  
  4418. /* method: somFree */
  4419. void   somFree()
  4420. {
  4421.    SOM_ResolveD(this,HIIcon,SOMObject,somFree)
  4422.     (this);
  4423. }
  4424.  
  4425. /* method: somCanDelete */
  4426. boolean   somCanDelete()
  4427. {
  4428.    return SOM_ResolveD(this,HIIcon,SOMObject,somCanDelete)
  4429.     (this);
  4430. }
  4431.  
  4432. /* method: somGetClass */
  4433. SOMClass*   somGetClass()
  4434. {
  4435.    return SOM_ResolveD(this,HIIcon,SOMObject,somGetClass)
  4436.     (this);
  4437. }
  4438.  
  4439. /* method: somGetClassName */
  4440. corbastring   somGetClassName()
  4441. {
  4442.    return SOM_ResolveD(this,HIIcon,SOMObject,somGetClassName)
  4443.     (this);
  4444. }
  4445.  
  4446. /* method: somGetSize */
  4447. long   somGetSize()
  4448. {
  4449.    return SOM_ResolveD(this,HIIcon,SOMObject,somGetSize)
  4450.     (this);
  4451. }
  4452.  
  4453. /* method: somIsA */
  4454. boolean   somIsA(SOMClass* aClassObj)
  4455. {
  4456.    return SOM_ResolveD(this,HIIcon,SOMObject,somIsA)
  4457.     (this,aClassObj);
  4458. }
  4459.  
  4460. /* method: somRespondsTo */
  4461. boolean   somRespondsTo(somId mId)
  4462. {
  4463.    return SOM_ResolveD(this,HIIcon,SOMObject,somRespondsTo)
  4464.     (this,mId);
  4465. }
  4466.  
  4467. /* method: somIsInstanceOf */
  4468. boolean   somIsInstanceOf(SOMClass* aClassObj)
  4469. {
  4470.    return SOM_ResolveD(this,HIIcon,SOMObject,somIsInstanceOf)
  4471.     (this,aClassObj);
  4472. }
  4473.  
  4474. /* va_list method: somDispatch */
  4475. /* the va_list invocation form */
  4476. boolean   HIIcon_somDispatch(somToken* retValue,
  4477.         somId methodId,
  4478.         va_list ap)
  4479. {
  4480.    return SOM_ResolveD(this,HIIcon,SOMObject,somDispatch)
  4481.     (this,retValue,methodId,ap);
  4482. }
  4483.  
  4484. /* the varargs invocation form */
  4485. boolean   somDispatch(somToken* retValue,
  4486.         somId methodId,
  4487.         ...)
  4488. {
  4489.    va_list ap;
  4490.    va_start(ap, methodId);
  4491.       boolean __somResult = 
  4492.       (boolean) SOM_ResolveD(this,HIIcon,SOMObject,somDispatch)
  4493.     (this,retValue,methodId,ap);
  4494.    va_end(ap);
  4495.    return __somResult;
  4496. }
  4497.  
  4498. /* va_list method: somClassDispatch */
  4499. /* the va_list invocation form */
  4500. boolean   HIIcon_somClassDispatch(SOMClass* clsObj,
  4501.         somToken* retValue,
  4502.         somId methodId,
  4503.         va_list ap)
  4504. {
  4505.    return SOM_ResolveD(this,HIIcon,SOMObject,somClassDispatch)
  4506.     (this,clsObj,retValue,methodId,ap);
  4507. }
  4508.  
  4509. /* the varargs invocation form */
  4510. boolean   somClassDispatch(SOMClass* clsObj,
  4511.         somToken* retValue,
  4512.         somId methodId,
  4513.         ...)
  4514. {
  4515.    va_list ap;
  4516.    va_start(ap, methodId);
  4517.       boolean __somResult = 
  4518.       (boolean) SOM_ResolveD(this,HIIcon,SOMObject,somClassDispatch)
  4519.     (this,clsObj,retValue,methodId,ap);
  4520.    va_end(ap);
  4521.    return __somResult;
  4522. }
  4523.  
  4524. /* method: somCastObj */
  4525. boolean   somCastObj(SOMClass* cls)
  4526. {
  4527.    return SOM_ResolveD(this,HIIcon,SOMObject,somCastObj)
  4528.     (this,cls);
  4529. }
  4530.  
  4531. /* method: somResetObj */
  4532. boolean   somResetObj()
  4533. {
  4534.    return SOM_ResolveD(this,HIIcon,SOMObject,somResetObj)
  4535.     (this);
  4536. }
  4537.  
  4538. /* method: somPrintSelf */
  4539. SOMObject*   somPrintSelf()
  4540. {
  4541.    return SOM_ResolveD(this,HIIcon,SOMObject,somPrintSelf)
  4542.     (this);
  4543. }
  4544.  
  4545. /* method: somDumpSelf */
  4546. void   somDumpSelf(long level)
  4547. {
  4548.    SOM_ResolveD(this,HIIcon,SOMObject,somDumpSelf)
  4549.     (this,level);
  4550. }
  4551.  
  4552. /* method: somDumpSelfInt */
  4553. void   somDumpSelfInt(long level)
  4554. {
  4555.    SOM_ResolveD(this,HIIcon,SOMObject,somDumpSelfInt)
  4556.     (this,level);
  4557. }
  4558.  
  4559. };   /* HIIcon */
  4560.  
  4561.  
  4562.  
  4563. #endif       /* SOM_HIIcon_xh */
  4564.  
  4565. #ifndef SOM_HICaption_xh
  4566. #define SOM_HICaption_xh
  4567.  
  4568. class HICaption;
  4569.  
  4570. #define HICaption_MajorVersion 0
  4571. #define HICaption_MinorVersion 0
  4572.  
  4573. /* C++ SOM defs */
  4574. #include <somcls.xh>
  4575. #include <somcm.xh>
  4576.  
  4577. /* C++ parent defs */
  4578. #ifndef SOM_HIStaticPanel_xh
  4579. #include <HIStaticPanels.xh>
  4580. #endif
  4581.  
  4582. #ifndef HICaption_API
  4583. #define HICaption_API
  4584. /*
  4585.  * -- The Class API
  4586.  */
  4587.  
  4588. /*
  4589.  * Start of user-defined types:
  4590.  */
  4591.  
  4592. /*
  4593.  * End of user-defined types.
  4594.  */
  4595.  
  4596. #ifdef OLDIBMSOMAPISUPPORT
  4597. #define HICaptionCClassData HICaptionClassData
  4598. #define HICaptionNewClass(major,minor) somNewVersionedClassReference(HICaption,major,minor)
  4599. #endif
  4600.  
  4601. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  4602. #define HICaptionMetaClass SOMClass
  4603.  
  4604. #if PRAGMA_ALIGN_SUPPORTED
  4605. #  pragma options align=power
  4606. #endif
  4607.  
  4608. /* The API to the HICaption class object, and the methods it introduces. */
  4609. SOMEXTERN struct HICaptionClassDataStructure {
  4610. #ifdef OLDIBMSOMAPISUPPORT
  4611.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  4612. #else
  4613.     long zero;
  4614. #endif
  4615.     somStaticClassInfo *sci;
  4616.     somDToken        instanceDataToken;
  4617.     long reserved [3];
  4618.     somMToken InitCaption;
  4619.     somMToken GetCaption;
  4620.     somMToken SetCaption;
  4621.     somMToken GetStrike;
  4622.     somMToken SetStrike;
  4623. } SOMDLINK HICaptionClassData;
  4624.  
  4625. #if PRAGMA_ALIGN_SUPPORTED
  4626. #  pragma options align=reset
  4627. #endif
  4628.  
  4629. #if !defined(HICaption_Class_Source) && !defined(SOM_Module_histaticpanels_Source)
  4630. #if PRAGMA_IMPORT_SUPPORTED
  4631. #pragma import list HICaptionClassData
  4632. #endif
  4633. #endif
  4634.  
  4635.  
  4636. /*
  4637.  * -- Typedefs for HICaption Method Procedures
  4638.  */
  4639. SOMEXTERN {
  4640. typedef OSStatus   (* SOMLINK somTD_HICaption_InitCaption)(HICaption *somSelf, Environment *ev,
  4641.         RefLabel* identifier,
  4642.         HIWindow* window,
  4643.         Rect* bounds,
  4644.         TextObject text);
  4645. typedef void   (* SOMLINK somTD_HICaption_GetCaption)(HICaption *somSelf, Environment *ev,
  4646.         TextObject* caption);
  4647. typedef void   (* SOMLINK somTD_HICaption_SetCaption)(HICaption *somSelf, Environment *ev,
  4648.         TextObject caption);
  4649. typedef OSStatus   (* SOMLINK somTD_HICaption_GetStrike)(HICaption *somSelf, Environment *ev,
  4650.         TextStrikeRef* theStrike);
  4651. typedef OSStatus   (* SOMLINK somTD_HICaption_SetStrike)(HICaption *somSelf, Environment *ev,
  4652.         TextStrikeRef theStrike);
  4653.  
  4654. /*
  4655.  * -- Typedefs for Inherited Methods
  4656.  */
  4657. typedef OSStatus   (* SOMLINK somTD_HICaption_InitStaticPanel)(HICaption *somSelf, Environment *ev,
  4658.         RefLabel* identifier,
  4659.         HIWindow* window,
  4660.         Rect* bounds);
  4661. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HICaption_GetEmbeddingParent)(HICaption *somSelf, Environment *ev);
  4662. typedef OSStatus   (* SOMLINK somTD_HICaption_InitPanel)(HICaption *somSelf, Environment *ev,
  4663.         RefLabel* identifier,
  4664.         HIWindow* window,
  4665.         Rect* bounds);
  4666. typedef OSStatus   (* SOMLINK somTD_HICaption_RegisterInterestInAppleEvent)(HICaption *somSelf, Environment *ev,
  4667.         AEHandlerTableRef table,
  4668.         AEEventClass eventClass,
  4669.         AEEventID eventID,
  4670.         HIEventRoutingType eventRouting);
  4671. typedef boolean   (* SOMLINK somTD_HICaption_HasValidContent)(HICaption *somSelf, Environment *ev);
  4672. typedef OSStatus   (* SOMLINK somTD_HICaption_GetDeepCollectionItemData)(HICaption *somSelf, Environment *ev,
  4673.         CollectionTag tag,
  4674.         SInt32 id,
  4675.         ByteCount sizeAllowed,
  4676.         ByteCount* sizeReturned,
  4677.         void* itemData);
  4678. typedef HIWindow*   (* SOMLINK somTD_HICaption_GetWindow)(HICaption *somSelf, Environment *ev);
  4679. typedef CGrafPtr   (* SOMLINK somTD_HICaption_GetPort)(HICaption *somSelf, Environment *ev);
  4680. typedef void   (* SOMLINK somTD_HICaption_GetRefLabel)(HICaption *somSelf, Environment *ev,
  4681.         RefLabel* identifier);
  4682. typedef Collection   (* SOMLINK somTD_HICaption_GetCollection)(HICaption *somSelf, Environment *ev);
  4683. typedef OSStatus   (* SOMLINK somTD_HICaption_Init)(HICaption *somSelf, Environment *ev,
  4684.         RefLabel* identifier,
  4685.         Rect* boundingRect);
  4686. typedef void   (* SOMLINK somTD_HICaption_Terminate)(HICaption *somSelf, Environment *ev);
  4687. typedef HIObject*   (* SOMLINK somTD_HICaption_Clone)(HICaption *somSelf, Environment *ev);
  4688. typedef void   (* SOMLINK somTD_HICaption_Release)(HICaption *somSelf, Environment *ev);
  4689. typedef ItemCount   (* SOMLINK somTD_HICaption_GetOwnerCount)(HICaption *somSelf, Environment *ev);
  4690. typedef OSStatus   (* SOMLINK somTD_HICaption_InitFromAERecord)(HICaption *somSelf, Environment *ev,
  4691.         AESubDesc* baseInitializerData,
  4692.         AESubDesc* initializerDataForClass,
  4693.         HIAERecordDataFormat dataFormat);
  4694. typedef OSStatus   (* SOMLINK somTD_HICaption_WriteToAERecord)(HICaption *somSelf, Environment *ev,
  4695.         AERecord* dataForSubclass,
  4696.         AERecord* objectData,
  4697.         HIAERecordDataFormat dataFormat);
  4698. typedef void   (* SOMLINK somTD_HICaption_CalculateOptimalSize)(HICaption *somSelf, Environment *ev,
  4699.         SInt16* optimalWidth,
  4700.         SInt16* optimalHeight);
  4701. typedef void   (* SOMLINK somTD_HICaption_GetBoundingRect)(HICaption *somSelf, Environment *ev,
  4702.         HICoordinateSystem coordinate,
  4703.         Rect* boundingRect);
  4704. typedef void   (* SOMLINK somTD_HICaption_SetBoundingRect)(HICaption *somSelf, Environment *ev,
  4705.         HICoordinateSystem coordinate,
  4706.         Rect* newBoundingRect);
  4707. typedef void   (* SOMLINK somTD_HICaption_SetPosition)(HICaption *somSelf, Environment *ev,
  4708.         HICoordinateSystem coordinate,
  4709.         Point* newPosition);
  4710. typedef void   (* SOMLINK somTD_HICaption_SetSize)(HICaption *somSelf, Environment *ev,
  4711.         SInt16 width,
  4712.         SInt16 height);
  4713. typedef void   (* SOMLINK somTD_HICaption_GetUpdateRect)(HICaption *somSelf, Environment *ev,
  4714.         HICoordinateSystem coordinate,
  4715.         Rect* updateRect);
  4716. typedef void   (* SOMLINK somTD_HICaption_Enable)(HICaption *somSelf, Environment *ev);
  4717. typedef void   (* SOMLINK somTD_HICaption_Disable)(HICaption *somSelf, Environment *ev);
  4718. typedef boolean   (* SOMLINK somTD_HICaption_IsEnabled)(HICaption *somSelf, Environment *ev);
  4719. typedef void   (* SOMLINK somTD_HICaption_Show)(HICaption *somSelf, Environment *ev);
  4720. typedef void   (* SOMLINK somTD_HICaption_Hide)(HICaption *somSelf, Environment *ev);
  4721. typedef boolean   (* SOMLINK somTD_HICaption_IsVisible)(HICaption *somSelf, Environment *ev);
  4722. typedef OSStatus   (* SOMLINK somTD_HICaption_HandleAppleEvent)(HICaption *somSelf, Environment *ev,
  4723.         AEEventClass eventClass,
  4724.         AEEventID eventID,
  4725.         AppleEvent* theEvent,
  4726.         AppleEvent* reply,
  4727.         AEHandlerTableRef handlerTableRef);
  4728. typedef OSStatus   (* SOMLINK somTD_HICaption_HandleActivate)(HICaption *somSelf, Environment *ev,
  4729.         AppleEvent* theEvent,
  4730.         AppleEvent* reply,
  4731.         AEHandlerTableRef handlerTableRef);
  4732. typedef OSStatus   (* SOMLINK somTD_HICaption_HandleDeactivate)(HICaption *somSelf, Environment *ev,
  4733.         AppleEvent* theEvent,
  4734.         AppleEvent* reply,
  4735.         AEHandlerTableRef handlerTableRef);
  4736. typedef OSStatus   (* SOMLINK somTD_HICaption_HandleNavigation)(HICaption *somSelf, Environment *ev,
  4737.         SInt8 key,
  4738.         SInt8 keyCode,
  4739.         EventModifiers modifiers,
  4740.         AppleEvent* theEvent,
  4741.         AppleEvent* reply,
  4742.         AEHandlerTableRef handlerTableRef);
  4743. typedef OSStatus   (* SOMLINK somTD_HICaption_HandleMouseDownInContent)(HICaption *somSelf, Environment *ev,
  4744.         Point* portLocalWhere,
  4745.         EventModifiers modifiers,
  4746.         AppleEvent* theEvent,
  4747.         AppleEvent* reply,
  4748.         AEHandlerTableRef handlerTableRef);
  4749. typedef OSStatus   (* SOMLINK somTD_HICaption_HandleMouseMovedInContent)(HICaption *somSelf, Environment *ev,
  4750.         Point* portLocalWhere,
  4751.         EventModifiers modifiers,
  4752.         AppleEvent* theEvent,
  4753.         AppleEvent* reply,
  4754.         AEHandlerTableRef handlerTableRef);
  4755. typedef OSStatus   (* SOMLINK somTD_HICaption_HandleMouseStoppedMovingInContent)(HICaption *somSelf, Environment *ev,
  4756.         Point* portLocalWhere,
  4757.         EventModifiers modifiers,
  4758.         AppleEvent* theEvent,
  4759.         AppleEvent* reply,
  4760.         AEHandlerTableRef handlerTableRef);
  4761. typedef OSStatus   (* SOMLINK somTD_HICaption_HandleMouseUpInContent)(HICaption *somSelf, Environment *ev,
  4762.         Point* portLocalWhere,
  4763.         EventModifiers modifiers,
  4764.         AppleEvent* theEvent,
  4765.         AppleEvent* reply,
  4766.         AEHandlerTableRef handlerTableRef);
  4767. typedef void   (* SOMLINK somTD_HICaption_TakeUserInputFocus)(HICaption *somSelf, Environment *ev);
  4768. typedef void   (* SOMLINK somTD_HICaption_ReleaseUserInputFocus)(HICaption *somSelf, Environment *ev);
  4769. typedef boolean   (* SOMLINK somTD_HICaption_HasUserInputFocus)(HICaption *somSelf, Environment *ev);
  4770. typedef boolean   (* SOMLINK somTD_HICaption_CanReleaseUserInputFocus)(HICaption *somSelf, Environment *ev);
  4771. typedef void   (* SOMLINK somTD_HICaption_SetUserInputFocusFlags)(HICaption *somSelf, Environment *ev,
  4772.         HIUserInputFocusFlags flags);
  4773. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HICaption_GetUserInputFocusFlags)(HICaption *somSelf, Environment *ev);
  4774. typedef OSStatus   (* SOMLINK somTD_HICaption_SetTitle)(HICaption *somSelf, Environment *ev,
  4775.         ConstHIImageRef title,
  4776.         HIAdoptionFlags disposalAdoptionFlags);
  4777. typedef OSStatus   (* SOMLINK somTD_HICaption_GetTitle)(HICaption *somSelf, Environment *ev,
  4778.         HIImageRef* title);
  4779. typedef void   (* SOMLINK somTD_HICaption_Draw)(HICaption *somSelf, Environment *ev,
  4780.         CGrafPtr whichPort,
  4781.         RgnHandle drawRgn);
  4782. typedef void   (* SOMLINK somTD_HICaption_Erase)(HICaption *somSelf, Environment *ev,
  4783.         CGrafPtr whichPort,
  4784.         RgnHandle eraseRgn);
  4785. typedef void   (* SOMLINK somTD_HICaption_Invalidate)(HICaption *somSelf, Environment *ev);
  4786. typedef HIDrawingMode   (* SOMLINK somTD_HICaption_GetDrawingMode)(HICaption *somSelf, Environment *ev);
  4787. typedef void   (* SOMLINK somTD_HICaption_SetDrawingMode)(HICaption *somSelf, Environment *ev,
  4788.         HIDrawingMode drawingMode);
  4789. typedef void   (* SOMLINK somTD_HICaption_SetBackgroundPattern)(HICaption *somSelf, Environment *ev,
  4790.         PixPatHandle backgroundPattern);
  4791. typedef PixPatHandle   (* SOMLINK somTD_HICaption_GetBackgroundPattern)(HICaption *somSelf, Environment *ev);
  4792. typedef void   (* SOMLINK somTD_HICaption_Cut)(HICaption *somSelf, Environment *ev);
  4793. typedef void   (* SOMLINK somTD_HICaption_Copy)(HICaption *somSelf, Environment *ev);
  4794. typedef void   (* SOMLINK somTD_HICaption_Paste)(HICaption *somSelf, Environment *ev);
  4795. typedef void   (* SOMLINK somTD_HICaption_Clear)(HICaption *somSelf, Environment *ev);
  4796. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HICaption_GetClipboardSupportFlags)(HICaption *somSelf, Environment *ev);
  4797. typedef OSStatus   (* SOMLINK somTD_HICaption_AddStateChangeCallback)(HICaption *somSelf, Environment *ev,
  4798.         HIStateChangeCallbackProcPtr changedStateCallback,
  4799.         HIStateChangeCallbackRef* newCallbackRef);
  4800. typedef OSStatus   (* SOMLINK somTD_HICaption_RemoveStateChangeCallback)(HICaption *somSelf, Environment *ev,
  4801.         HIStateChangeCallbackRef callbackRefToRemove);
  4802. typedef OSStatus   (* SOMLINK somTD_HICaption_GetHIObjectFromRefLabel)(Environment *ev,
  4803.         RefLabel* identifier,
  4804.         ItemCount requestedObjects,
  4805.         ItemCount* totalObjects,
  4806.         HIObject** theObjects);
  4807. typedef OSStatus   (* SOMLINK somTD_HICaption_GetNewHIObject)(Environment *ev,
  4808.         AESubDesc* objectInitializer,
  4809.         HIObject** newObject);
  4810. typedef OSStatus   (* SOMLINK somTD_HICaption_GetNewHIObjectFromResource)(Environment *ev,
  4811.         ResID objectInitializerResourceID,
  4812.         HIObject** newObject);
  4813. typedef void   (* SOMLINK somTD_HICaption_DrawContent)(HICaption *somSelf, Environment *ev,
  4814.         CGrafPtr whichPort,
  4815.         RgnHandle drawRgn);
  4816. typedef void   (* SOMLINK somTD_HICaption_EraseContent)(HICaption *somSelf, Environment *ev,
  4817.         CGrafPtr whichPort,
  4818.         RgnHandle regionToErase);
  4819. typedef void   (* SOMLINK somTD_HICaption_TranslatePoint)(HICaption *somSelf, Environment *ev,
  4820.         HICoordinateSystem translateFrom,
  4821.         HICoordinateSystem translateTo,
  4822.         Point* sourcePoint,
  4823.         Point* translatedPoint);
  4824. typedef void   (* SOMLINK somTD_HICaption_TranslateRect)(HICaption *somSelf, Environment *ev,
  4825.         HICoordinateSystem translateFrom,
  4826.         HICoordinateSystem translateTo,
  4827.         Rect* sourceRect,
  4828.         Rect* translatedRect);
  4829. typedef void   (* SOMLINK somTD_HICaption_StateChanged)(HICaption *somSelf, Environment *ev,
  4830.         HIStateChangeCodeCreator selectorCreator,
  4831.         HIStateChangeCode changedCode);
  4832. typedef void   (* SOMLINK somTD_HICaption_SetClipboardSupportFlags)(HICaption *somSelf, Environment *ev,
  4833.         HIClipboardSupportFlags flags);
  4834. typedef OSStatus   (* SOMLINK somTD_HICaption_Verify)(HICaption *somSelf, Environment *ev);
  4835. typedef void   (* SOMLINK somTD_HICaption_somInit)(HICaption *somSelf);
  4836. typedef void   (* SOMLINK somTD_HICaption_somUninit)(HICaption *somSelf);
  4837. typedef SOMObject*   (* SOMLINK somTD_HICaption_somDuplicateReference)(HICaption *somSelf);
  4838. typedef boolean   (* SOMLINK somTD_HICaption_somCompareReference)(HICaption *somSelf,
  4839.         SOMObject* anObject);
  4840. typedef SOMObject*   (* SOMLINK somTD_HICaption_somRelease)(HICaption *somSelf);
  4841. typedef void   (* SOMLINK somTD_HICaption_somFree)(HICaption *somSelf);
  4842. typedef boolean   (* SOMLINK somTD_HICaption_somCanDelete)(HICaption *somSelf);
  4843. typedef SOMClass*   (* SOMLINK somTD_HICaption_somGetClass)(HICaption *somSelf);
  4844. typedef corbastring   (* SOMLINK somTD_HICaption_somGetClassName)(HICaption *somSelf);
  4845. typedef long   (* SOMLINK somTD_HICaption_somGetSize)(HICaption *somSelf);
  4846. typedef boolean   (* SOMLINK somTD_HICaption_somIsA)(HICaption *somSelf,
  4847.         SOMClass* aClassObj);
  4848. typedef boolean   (* SOMLINK somTD_HICaption_somRespondsTo)(HICaption *somSelf,
  4849.         somId mId);
  4850. typedef boolean   (* SOMLINK somTD_HICaption_somIsInstanceOf)(HICaption *somSelf,
  4851.         SOMClass* aClassObj);
  4852. typedef boolean   (* SOMLINK somTD_HICaption_somDispatch)(HICaption *somSelf,
  4853.         somToken* retValue,
  4854.         somId methodId,
  4855.         va_list ap);
  4856. typedef boolean   (* SOMLINK somTD_HICaption_somClassDispatch)(HICaption *somSelf,
  4857.         SOMClass* clsObj,
  4858.         somToken* retValue,
  4859.         somId methodId,
  4860.         va_list ap);
  4861. typedef boolean   (* SOMLINK somTD_HICaption_somCastObj)(HICaption *somSelf,
  4862.         SOMClass* cls);
  4863. typedef boolean   (* SOMLINK somTD_HICaption_somResetObj)(HICaption *somSelf);
  4864. typedef SOMObject*   (* SOMLINK somTD_HICaption_somPrintSelf)(HICaption *somSelf);
  4865. typedef void   (* SOMLINK somTD_HICaption_somDumpSelf)(HICaption *somSelf,
  4866.         long level);
  4867. typedef void   (* SOMLINK somTD_HICaption_somDumpSelfInt)(HICaption *somSelf,
  4868.         long level);
  4869. }
  4870.  
  4871. #endif /* HICaption_API */
  4872.  
  4873.  
  4874. /*
  4875.  * -- This emitter treats Method Tokens as Thunks by default.
  4876.  * -- Use the sc modifier "nothunks" to change this default
  4877.  */
  4878. #undef somresolve_
  4879. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  4880.  
  4881. /*
  4882.  * -- The C++ Wrapper Class for HICaption
  4883.  */
  4884. class HICaption : public HIStaticPanel
  4885. {
  4886. public:
  4887.  
  4888. // HICaption::new registers use of the class object, and then uses somNew
  4889. // to allocate memory and load the object method table pointer. 
  4890. void *operator new(size_t size)
  4891. {
  4892.     SOM_IgnoreWarning(size);
  4893.     // Allocate memory using the default allocator for HICaption, and
  4894.     // clear mem & set method table pointer, call basic initialization
  4895.     return (void*) somNewObject(HICaption);
  4896. }
  4897.  
  4898. // HICaption::delete uses the default deallocator for the object's class.
  4899. void operator delete(void * obj)
  4900. {
  4901.     if (obj) {
  4902.         SOM_Resolve(obj,SOMObject,somFree)
  4903.            ( (SOMObject*) obj );
  4904.     }
  4905. }
  4906.  
  4907. /* method: InitCaption */
  4908. OSStatus   InitCaption(Environment *ev,
  4909.         RefLabel* identifier,
  4910.         HIWindow* window,
  4911.         Rect* bounds,
  4912.         TextObject text)
  4913. {
  4914.    return SOM_ResolveD(this,HICaption,HICaption,InitCaption)
  4915.     (this,ev,identifier,window,bounds,text);
  4916. }
  4917.  
  4918. /* method: GetCaption */
  4919. void   GetCaption(Environment *ev,
  4920.         TextObject* caption)
  4921. {
  4922.    SOM_ResolveD(this,HICaption,HICaption,GetCaption)
  4923.     (this,ev,caption);
  4924. }
  4925.  
  4926. /* method: SetCaption */
  4927. void   SetCaption(Environment *ev,
  4928.         TextObject caption)
  4929. {
  4930.    SOM_ResolveD(this,HICaption,HICaption,SetCaption)
  4931.     (this,ev,caption);
  4932. }
  4933.  
  4934. /* method: GetStrike */
  4935. OSStatus   GetStrike(Environment *ev,
  4936.         TextStrikeRef* theStrike)
  4937. {
  4938.    return SOM_ResolveD(this,HICaption,HICaption,GetStrike)
  4939.     (this,ev,theStrike);
  4940. }
  4941.  
  4942. /* method: SetStrike */
  4943. OSStatus   SetStrike(Environment *ev,
  4944.         TextStrikeRef theStrike)
  4945. {
  4946.    return SOM_ResolveD(this,HICaption,HICaption,SetStrike)
  4947.     (this,ev,theStrike);
  4948. }
  4949.  
  4950.  
  4951. /*
  4952.  * -- Inherited methods
  4953.  */
  4954. /* method: InitStaticPanel */
  4955. OSStatus   InitStaticPanel(Environment *ev,
  4956.         RefLabel* identifier,
  4957.         HIWindow* window,
  4958.         Rect* bounds)
  4959. {
  4960.    return SOM_ResolveD(this,HICaption,HIStaticPanel,InitStaticPanel)
  4961.     (this,ev,identifier,window,bounds);
  4962. }
  4963.  
  4964. /* method: GetEmbeddingParent */
  4965. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  4966. {
  4967.    return SOM_ResolveD(this,HICaption,HIPanel,GetEmbeddingParent)
  4968.     (this,ev);
  4969. }
  4970.  
  4971. /* method: InitPanel */
  4972. OSStatus   InitPanel(Environment *ev,
  4973.         RefLabel* identifier,
  4974.         HIWindow* window,
  4975.         Rect* bounds)
  4976. {
  4977.    return SOM_ResolveD(this,HICaption,HIPanel,InitPanel)
  4978.     (this,ev,identifier,window,bounds);
  4979. }
  4980.  
  4981. /* method: RegisterInterestInAppleEvent */
  4982. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  4983.         AEHandlerTableRef table,
  4984.         AEEventClass eventClass,
  4985.         AEEventID eventID,
  4986.         HIEventRoutingType eventRouting)
  4987. {
  4988.    return SOM_ResolveD(this,HICaption,HIPanel,RegisterInterestInAppleEvent)
  4989.     (this,ev,table,eventClass,eventID,eventRouting);
  4990. }
  4991.  
  4992. /* method: HasValidContent */
  4993. boolean   HasValidContent(Environment *ev)
  4994. {
  4995.    return SOM_ResolveD(this,HICaption,HIPanel,HasValidContent)
  4996.     (this,ev);
  4997. }
  4998.  
  4999. /* method: GetDeepCollectionItemData */
  5000. OSStatus   GetDeepCollectionItemData(Environment *ev,
  5001.         CollectionTag tag,
  5002.         SInt32 id,
  5003.         ByteCount sizeAllowed,
  5004.         ByteCount* sizeReturned,
  5005.         void* itemData)
  5006. {
  5007.    return SOM_ResolveD(this,HICaption,HIPanel,GetDeepCollectionItemData)
  5008.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  5009. }
  5010.  
  5011. /* method: GetWindow */
  5012. HIWindow*   GetWindow(Environment *ev)
  5013. {
  5014.    return SOM_ResolveD(this,HICaption,HIObject,GetWindow)
  5015.     (this,ev);
  5016. }
  5017.  
  5018. /* method: GetPort */
  5019. CGrafPtr   GetPort(Environment *ev)
  5020. {
  5021.    return SOM_ResolveD(this,HICaption,HIObject,GetPort)
  5022.     (this,ev);
  5023. }
  5024.  
  5025. /* method: GetRefLabel */
  5026. void   GetRefLabel(Environment *ev,
  5027.         RefLabel* identifier)
  5028. {
  5029.    SOM_ResolveD(this,HICaption,HIObject,GetRefLabel)
  5030.     (this,ev,identifier);
  5031. }
  5032.  
  5033. /* method: GetCollection */
  5034. Collection   GetCollection(Environment *ev)
  5035. {
  5036.    return SOM_ResolveD(this,HICaption,HIObject,GetCollection)
  5037.     (this,ev);
  5038. }
  5039.  
  5040. /* method: Init */
  5041. OSStatus   Init(Environment *ev,
  5042.         RefLabel* identifier,
  5043.         Rect* boundingRect)
  5044. {
  5045.    return SOM_ResolveD(this,HICaption,HIObject,Init)
  5046.     (this,ev,identifier,boundingRect);
  5047. }
  5048.  
  5049. /* method: Terminate */
  5050. void   Terminate(Environment *ev)
  5051. {
  5052.    SOM_ResolveD(this,HICaption,HIObject,Terminate)
  5053.     (this,ev);
  5054. }
  5055.  
  5056. /* method: Clone */
  5057. HIObject*   Clone(Environment *ev)
  5058. {
  5059.    return SOM_ResolveD(this,HICaption,HIObject,Clone)
  5060.     (this,ev);
  5061. }
  5062.  
  5063. /* method: Release */
  5064. void   Release(Environment *ev)
  5065. {
  5066.    SOM_ResolveD(this,HICaption,HIObject,Release)
  5067.     (this,ev);
  5068. }
  5069.  
  5070. /* method: GetOwnerCount */
  5071. ItemCount   GetOwnerCount(Environment *ev)
  5072. {
  5073.    return SOM_ResolveD(this,HICaption,HIObject,GetOwnerCount)
  5074.     (this,ev);
  5075. }
  5076.  
  5077. /* method: InitFromAERecord */
  5078. OSStatus   InitFromAERecord(Environment *ev,
  5079.         AESubDesc* baseInitializerData,
  5080.         AESubDesc* initializerDataForClass,
  5081.         HIAERecordDataFormat dataFormat)
  5082. {
  5083.    return SOM_ResolveD(this,HICaption,HIObject,InitFromAERecord)
  5084.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  5085. }
  5086.  
  5087. /* method: WriteToAERecord */
  5088. OSStatus   WriteToAERecord(Environment *ev,
  5089.         AERecord* dataForSubclass,
  5090.         AERecord* objectData,
  5091.         HIAERecordDataFormat dataFormat)
  5092. {
  5093.    return SOM_ResolveD(this,HICaption,HIObject,WriteToAERecord)
  5094.     (this,ev,dataForSubclass,objectData,dataFormat);
  5095. }
  5096.  
  5097. /* method: CalculateOptimalSize */
  5098. void   CalculateOptimalSize(Environment *ev,
  5099.         SInt16* optimalWidth,
  5100.         SInt16* optimalHeight)
  5101. {
  5102.    SOM_ResolveD(this,HICaption,HIObject,CalculateOptimalSize)
  5103.     (this,ev,optimalWidth,optimalHeight);
  5104. }
  5105.  
  5106. /* method: GetBoundingRect */
  5107. void   GetBoundingRect(Environment *ev,
  5108.         HICoordinateSystem coordinate,
  5109.         Rect* boundingRect)
  5110. {
  5111.    SOM_ResolveD(this,HICaption,HIObject,GetBoundingRect)
  5112.     (this,ev,coordinate,boundingRect);
  5113. }
  5114.  
  5115. /* method: SetBoundingRect */
  5116. void   SetBoundingRect(Environment *ev,
  5117.         HICoordinateSystem coordinate,
  5118.         Rect* newBoundingRect)
  5119. {
  5120.    SOM_ResolveD(this,HICaption,HIObject,SetBoundingRect)
  5121.     (this,ev,coordinate,newBoundingRect);
  5122. }
  5123.  
  5124. /* method: SetPosition */
  5125. void   SetPosition(Environment *ev,
  5126.         HICoordinateSystem coordinate,
  5127.         Point* newPosition)
  5128. {
  5129.    SOM_ResolveD(this,HICaption,HIObject,SetPosition)
  5130.     (this,ev,coordinate,newPosition);
  5131. }
  5132.  
  5133. /* method: SetSize */
  5134. void   SetSize(Environment *ev,
  5135.         SInt16 width,
  5136.         SInt16 height)
  5137. {
  5138.    SOM_ResolveD(this,HICaption,HIObject,SetSize)
  5139.     (this,ev,width,height);
  5140. }
  5141.  
  5142. /* method: GetUpdateRect */
  5143. void   GetUpdateRect(Environment *ev,
  5144.         HICoordinateSystem coordinate,
  5145.         Rect* updateRect)
  5146. {
  5147.    SOM_ResolveD(this,HICaption,HIObject,GetUpdateRect)
  5148.     (this,ev,coordinate,updateRect);
  5149. }
  5150.  
  5151. /* method: Enable */
  5152. void   Enable(Environment *ev)
  5153. {
  5154.    SOM_ResolveD(this,HICaption,HIObject,Enable)
  5155.     (this,ev);
  5156. }
  5157.  
  5158. /* method: Disable */
  5159. void   Disable(Environment *ev)
  5160. {
  5161.    SOM_ResolveD(this,HICaption,HIObject,Disable)
  5162.     (this,ev);
  5163. }
  5164.  
  5165. /* method: IsEnabled */
  5166. boolean   IsEnabled(Environment *ev)
  5167. {
  5168.    return SOM_ResolveD(this,HICaption,HIObject,IsEnabled)
  5169.     (this,ev);
  5170. }
  5171.  
  5172. /* method: Show */
  5173. void   Show(Environment *ev)
  5174. {
  5175.    SOM_ResolveD(this,HICaption,HIObject,Show)
  5176.     (this,ev);
  5177. }
  5178.  
  5179. /* method: Hide */
  5180. void   Hide(Environment *ev)
  5181. {
  5182.    SOM_ResolveD(this,HICaption,HIObject,Hide)
  5183.     (this,ev);
  5184. }
  5185.  
  5186. /* method: IsVisible */
  5187. boolean   IsVisible(Environment *ev)
  5188. {
  5189.    return SOM_ResolveD(this,HICaption,HIObject,IsVisible)
  5190.     (this,ev);
  5191. }
  5192.  
  5193. /* method: HandleAppleEvent */
  5194. OSStatus   HandleAppleEvent(Environment *ev,
  5195.         AEEventClass eventClass,
  5196.         AEEventID eventID,
  5197.         AppleEvent* theEvent,
  5198.         AppleEvent* reply,
  5199.         AEHandlerTableRef handlerTableRef)
  5200. {
  5201.    return SOM_ResolveD(this,HICaption,HIObject,HandleAppleEvent)
  5202.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  5203. }
  5204.  
  5205. /* method: HandleActivate */
  5206. OSStatus   HandleActivate(Environment *ev,
  5207.         AppleEvent* theEvent,
  5208.         AppleEvent* reply,
  5209.         AEHandlerTableRef handlerTableRef)
  5210. {
  5211.    return SOM_ResolveD(this,HICaption,HIObject,HandleActivate)
  5212.     (this,ev,theEvent,reply,handlerTableRef);
  5213. }
  5214.  
  5215. /* method: HandleDeactivate */
  5216. OSStatus   HandleDeactivate(Environment *ev,
  5217.         AppleEvent* theEvent,
  5218.         AppleEvent* reply,
  5219.         AEHandlerTableRef handlerTableRef)
  5220. {
  5221.    return SOM_ResolveD(this,HICaption,HIObject,HandleDeactivate)
  5222.     (this,ev,theEvent,reply,handlerTableRef);
  5223. }
  5224.  
  5225. /* method: HandleNavigation */
  5226. OSStatus   HandleNavigation(Environment *ev,
  5227.         SInt8 key,
  5228.         SInt8 keyCode,
  5229.         EventModifiers modifiers,
  5230.         AppleEvent* theEvent,
  5231.         AppleEvent* reply,
  5232.         AEHandlerTableRef handlerTableRef)
  5233. {
  5234.    return SOM_ResolveD(this,HICaption,HIObject,HandleNavigation)
  5235.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  5236. }
  5237.  
  5238. /* method: HandleMouseDownInContent */
  5239. OSStatus   HandleMouseDownInContent(Environment *ev,
  5240.         Point* portLocalWhere,
  5241.         EventModifiers modifiers,
  5242.         AppleEvent* theEvent,
  5243.         AppleEvent* reply,
  5244.         AEHandlerTableRef handlerTableRef)
  5245. {
  5246.    return SOM_ResolveD(this,HICaption,HIObject,HandleMouseDownInContent)
  5247.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5248. }
  5249.  
  5250. /* method: HandleMouseMovedInContent */
  5251. OSStatus   HandleMouseMovedInContent(Environment *ev,
  5252.         Point* portLocalWhere,
  5253.         EventModifiers modifiers,
  5254.         AppleEvent* theEvent,
  5255.         AppleEvent* reply,
  5256.         AEHandlerTableRef handlerTableRef)
  5257. {
  5258.    return SOM_ResolveD(this,HICaption,HIObject,HandleMouseMovedInContent)
  5259.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5260. }
  5261.  
  5262. /* method: HandleMouseStoppedMovingInContent */
  5263. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  5264.         Point* portLocalWhere,
  5265.         EventModifiers modifiers,
  5266.         AppleEvent* theEvent,
  5267.         AppleEvent* reply,
  5268.         AEHandlerTableRef handlerTableRef)
  5269. {
  5270.    return SOM_ResolveD(this,HICaption,HIObject,HandleMouseStoppedMovingInContent)
  5271.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5272. }
  5273.  
  5274. /* method: HandleMouseUpInContent */
  5275. OSStatus   HandleMouseUpInContent(Environment *ev,
  5276.         Point* portLocalWhere,
  5277.         EventModifiers modifiers,
  5278.         AppleEvent* theEvent,
  5279.         AppleEvent* reply,
  5280.         AEHandlerTableRef handlerTableRef)
  5281. {
  5282.    return SOM_ResolveD(this,HICaption,HIObject,HandleMouseUpInContent)
  5283.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5284. }
  5285.  
  5286. /* method: TakeUserInputFocus */
  5287. void   TakeUserInputFocus(Environment *ev)
  5288. {
  5289.    SOM_ResolveD(this,HICaption,HIObject,TakeUserInputFocus)
  5290.     (this,ev);
  5291. }
  5292.  
  5293. /* method: ReleaseUserInputFocus */
  5294. void   ReleaseUserInputFocus(Environment *ev)
  5295. {
  5296.    SOM_ResolveD(this,HICaption,HIObject,ReleaseUserInputFocus)
  5297.     (this,ev);
  5298. }
  5299.  
  5300. /* method: HasUserInputFocus */
  5301. boolean   HasUserInputFocus(Environment *ev)
  5302. {
  5303.    return SOM_ResolveD(this,HICaption,HIObject,HasUserInputFocus)
  5304.     (this,ev);
  5305. }
  5306.  
  5307. /* method: CanReleaseUserInputFocus */
  5308. boolean   CanReleaseUserInputFocus(Environment *ev)
  5309. {
  5310.    return SOM_ResolveD(this,HICaption,HIObject,CanReleaseUserInputFocus)
  5311.     (this,ev);
  5312. }
  5313.  
  5314. /* method: SetUserInputFocusFlags */
  5315. void   SetUserInputFocusFlags(Environment *ev,
  5316.         HIUserInputFocusFlags flags)
  5317. {
  5318.    SOM_ResolveD(this,HICaption,HIObject,SetUserInputFocusFlags)
  5319.     (this,ev,flags);
  5320. }
  5321.  
  5322. /* method: GetUserInputFocusFlags */
  5323. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  5324. {
  5325.    return SOM_ResolveD(this,HICaption,HIObject,GetUserInputFocusFlags)
  5326.     (this,ev);
  5327. }
  5328.  
  5329. /* method: SetTitle */
  5330. OSStatus   SetTitle(Environment *ev,
  5331.         ConstHIImageRef title,
  5332.         HIAdoptionFlags disposalAdoptionFlags)
  5333. {
  5334.    return SOM_ResolveD(this,HICaption,HIObject,SetTitle)
  5335.     (this,ev,title,disposalAdoptionFlags);
  5336. }
  5337.  
  5338. /* method: GetTitle */
  5339. OSStatus   GetTitle(Environment *ev,
  5340.         HIImageRef* title)
  5341. {
  5342.    return SOM_ResolveD(this,HICaption,HIObject,GetTitle)
  5343.     (this,ev,title);
  5344. }
  5345.  
  5346. /* method: Draw */
  5347. void   Draw(Environment *ev,
  5348.         CGrafPtr whichPort,
  5349.         RgnHandle drawRgn)
  5350. {
  5351.    SOM_ResolveD(this,HICaption,HIObject,Draw)
  5352.     (this,ev,whichPort,drawRgn);
  5353. }
  5354.  
  5355. /* method: Erase */
  5356. void   Erase(Environment *ev,
  5357.         CGrafPtr whichPort,
  5358.         RgnHandle eraseRgn)
  5359. {
  5360.    SOM_ResolveD(this,HICaption,HIObject,Erase)
  5361.     (this,ev,whichPort,eraseRgn);
  5362. }
  5363.  
  5364. /* method: Invalidate */
  5365. void   Invalidate(Environment *ev)
  5366. {
  5367.    SOM_ResolveD(this,HICaption,HIObject,Invalidate)
  5368.     (this,ev);
  5369. }
  5370.  
  5371. /* method: GetDrawingMode */
  5372. HIDrawingMode   GetDrawingMode(Environment *ev)
  5373. {
  5374.    return SOM_ResolveD(this,HICaption,HIObject,GetDrawingMode)
  5375.     (this,ev);
  5376. }
  5377.  
  5378. /* method: SetDrawingMode */
  5379. void   SetDrawingMode(Environment *ev,
  5380.         HIDrawingMode drawingMode)
  5381. {
  5382.    SOM_ResolveD(this,HICaption,HIObject,SetDrawingMode)
  5383.     (this,ev,drawingMode);
  5384. }
  5385.  
  5386. /* method: SetBackgroundPattern */
  5387. void   SetBackgroundPattern(Environment *ev,
  5388.         PixPatHandle backgroundPattern)
  5389. {
  5390.    SOM_ResolveD(this,HICaption,HIObject,SetBackgroundPattern)
  5391.     (this,ev,backgroundPattern);
  5392. }
  5393.  
  5394. /* method: GetBackgroundPattern */
  5395. PixPatHandle   GetBackgroundPattern(Environment *ev)
  5396. {
  5397.    return SOM_ResolveD(this,HICaption,HIObject,GetBackgroundPattern)
  5398.     (this,ev);
  5399. }
  5400.  
  5401. /* method: Cut */
  5402. void   Cut(Environment *ev)
  5403. {
  5404.    SOM_ResolveD(this,HICaption,HIObject,Cut)
  5405.     (this,ev);
  5406. }
  5407.  
  5408. /* method: Copy */
  5409. void   Copy(Environment *ev)
  5410. {
  5411.    SOM_ResolveD(this,HICaption,HIObject,Copy)
  5412.     (this,ev);
  5413. }
  5414.  
  5415. /* method: Paste */
  5416. void   Paste(Environment *ev)
  5417. {
  5418.    SOM_ResolveD(this,HICaption,HIObject,Paste)
  5419.     (this,ev);
  5420. }
  5421.  
  5422. /* method: Clear */
  5423. void   Clear(Environment *ev)
  5424. {
  5425.    SOM_ResolveD(this,HICaption,HIObject,Clear)
  5426.     (this,ev);
  5427. }
  5428.  
  5429. /* method: GetClipboardSupportFlags */
  5430. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  5431. {
  5432.    return SOM_ResolveD(this,HICaption,HIObject,GetClipboardSupportFlags)
  5433.     (this,ev);
  5434. }
  5435.  
  5436. /* method: AddStateChangeCallback */
  5437. OSStatus   AddStateChangeCallback(Environment *ev,
  5438.         HIStateChangeCallbackProcPtr changedStateCallback,
  5439.         HIStateChangeCallbackRef* newCallbackRef)
  5440. {
  5441.    return SOM_ResolveD(this,HICaption,HIObject,AddStateChangeCallback)
  5442.     (this,ev,changedStateCallback,newCallbackRef);
  5443. }
  5444.  
  5445. /* method: RemoveStateChangeCallback */
  5446. OSStatus   RemoveStateChangeCallback(Environment *ev,
  5447.         HIStateChangeCallbackRef callbackRefToRemove)
  5448. {
  5449.    return SOM_ResolveD(this,HICaption,HIObject,RemoveStateChangeCallback)
  5450.     (this,ev,callbackRefToRemove);
  5451. }
  5452.  
  5453. /* noself procedure: GetHIObjectFromRefLabel */
  5454. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  5455.         RefLabel* identifier,
  5456.         ItemCount requestedObjects,
  5457.         ItemCount* totalObjects,
  5458.         HIObject** theObjects)
  5459. {
  5460. return ((somTD_HICaption_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  5461.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  5462. }
  5463.  
  5464. /* noself procedure: GetNewHIObject */
  5465. static OSStatus   GetNewHIObject(Environment *ev,
  5466.         AESubDesc* objectInitializer,
  5467.         HIObject** newObject)
  5468. {
  5469. return ((somTD_HICaption_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  5470.     (ev,objectInitializer,newObject);
  5471. }
  5472.  
  5473. /* noself procedure: GetNewHIObjectFromResource */
  5474. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  5475.         ResID objectInitializerResourceID,
  5476.         HIObject** newObject)
  5477. {
  5478. return ((somTD_HICaption_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  5479.     (ev,objectInitializerResourceID,newObject);
  5480. }
  5481.  
  5482. /* method: DrawContent */
  5483. void   DrawContent(Environment *ev,
  5484.         CGrafPtr whichPort,
  5485.         RgnHandle drawRgn)
  5486. {
  5487.    SOM_ResolveD(this,HICaption,HIObject,DrawContent)
  5488.     (this,ev,whichPort,drawRgn);
  5489. }
  5490.  
  5491. /* method: EraseContent */
  5492. void   EraseContent(Environment *ev,
  5493.         CGrafPtr whichPort,
  5494.         RgnHandle regionToErase)
  5495. {
  5496.    SOM_ResolveD(this,HICaption,HIObject,EraseContent)
  5497.     (this,ev,whichPort,regionToErase);
  5498. }
  5499.  
  5500. /* method: TranslatePoint */
  5501. void   TranslatePoint(Environment *ev,
  5502.         HICoordinateSystem translateFrom,
  5503.         HICoordinateSystem translateTo,
  5504.         Point* sourcePoint,
  5505.         Point* translatedPoint)
  5506. {
  5507.    SOM_ResolveD(this,HICaption,HIObject,TranslatePoint)
  5508.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  5509. }
  5510.  
  5511. /* method: TranslateRect */
  5512. void   TranslateRect(Environment *ev,
  5513.         HICoordinateSystem translateFrom,
  5514.         HICoordinateSystem translateTo,
  5515.         Rect* sourceRect,
  5516.         Rect* translatedRect)
  5517. {
  5518.    SOM_ResolveD(this,HICaption,HIObject,TranslateRect)
  5519.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  5520. }
  5521.  
  5522. /* method: StateChanged */
  5523. void   StateChanged(Environment *ev,
  5524.         HIStateChangeCodeCreator selectorCreator,
  5525.         HIStateChangeCode changedCode)
  5526. {
  5527.    SOM_ResolveD(this,HICaption,HIObject,StateChanged)
  5528.     (this,ev,selectorCreator,changedCode);
  5529. }
  5530.  
  5531. /* method: SetClipboardSupportFlags */
  5532. void   SetClipboardSupportFlags(Environment *ev,
  5533.         HIClipboardSupportFlags flags)
  5534. {
  5535.    SOM_ResolveD(this,HICaption,HIObject,SetClipboardSupportFlags)
  5536.     (this,ev,flags);
  5537. }
  5538.  
  5539. /* method: Verify */
  5540. OSStatus   Verify(Environment *ev)
  5541. {
  5542.    return SOM_ResolveD(this,HICaption,HIObject,Verify)
  5543.     (this,ev);
  5544. }
  5545.  
  5546. /* method: somInit */
  5547. void   somInit()
  5548. {
  5549.    SOM_ResolveD(this,HICaption,SOMObject,somInit)
  5550.     (this);
  5551. }
  5552.  
  5553. /* method: somUninit */
  5554. void   somUninit()
  5555. {
  5556.    SOM_ResolveD(this,HICaption,SOMObject,somUninit)
  5557.     (this);
  5558. }
  5559.  
  5560. /* method: somDuplicateReference */
  5561. SOMObject*   somDuplicateReference()
  5562. {
  5563.    return SOM_ResolveD(this,HICaption,SOMObject,somDuplicateReference)
  5564.     (this);
  5565. }
  5566.  
  5567. /* method: somCompareReference */
  5568. boolean   somCompareReference(SOMObject* anObject)
  5569. {
  5570.    return SOM_ResolveD(this,HICaption,SOMObject,somCompareReference)
  5571.     (this,anObject);
  5572. }
  5573.  
  5574. /* method: somRelease */
  5575. SOMObject*   somRelease()
  5576. {
  5577.    return SOM_ResolveD(this,HICaption,SOMObject,somRelease)
  5578.     (this);
  5579. }
  5580.  
  5581. /* method: somFree */
  5582. void   somFree()
  5583. {
  5584.    SOM_ResolveD(this,HICaption,SOMObject,somFree)
  5585.     (this);
  5586. }
  5587.  
  5588. /* method: somCanDelete */
  5589. boolean   somCanDelete()
  5590. {
  5591.    return SOM_ResolveD(this,HICaption,SOMObject,somCanDelete)
  5592.     (this);
  5593. }
  5594.  
  5595. /* method: somGetClass */
  5596. SOMClass*   somGetClass()
  5597. {
  5598.    return SOM_ResolveD(this,HICaption,SOMObject,somGetClass)
  5599.     (this);
  5600. }
  5601.  
  5602. /* method: somGetClassName */
  5603. corbastring   somGetClassName()
  5604. {
  5605.    return SOM_ResolveD(this,HICaption,SOMObject,somGetClassName)
  5606.     (this);
  5607. }
  5608.  
  5609. /* method: somGetSize */
  5610. long   somGetSize()
  5611. {
  5612.    return SOM_ResolveD(this,HICaption,SOMObject,somGetSize)
  5613.     (this);
  5614. }
  5615.  
  5616. /* method: somIsA */
  5617. boolean   somIsA(SOMClass* aClassObj)
  5618. {
  5619.    return SOM_ResolveD(this,HICaption,SOMObject,somIsA)
  5620.     (this,aClassObj);
  5621. }
  5622.  
  5623. /* method: somRespondsTo */
  5624. boolean   somRespondsTo(somId mId)
  5625. {
  5626.    return SOM_ResolveD(this,HICaption,SOMObject,somRespondsTo)
  5627.     (this,mId);
  5628. }
  5629.  
  5630. /* method: somIsInstanceOf */
  5631. boolean   somIsInstanceOf(SOMClass* aClassObj)
  5632. {
  5633.    return SOM_ResolveD(this,HICaption,SOMObject,somIsInstanceOf)
  5634.     (this,aClassObj);
  5635. }
  5636.  
  5637. /* va_list method: somDispatch */
  5638. /* the va_list invocation form */
  5639. boolean   HICaption_somDispatch(somToken* retValue,
  5640.         somId methodId,
  5641.         va_list ap)
  5642. {
  5643.    return SOM_ResolveD(this,HICaption,SOMObject,somDispatch)
  5644.     (this,retValue,methodId,ap);
  5645. }
  5646.  
  5647. /* the varargs invocation form */
  5648. boolean   somDispatch(somToken* retValue,
  5649.         somId methodId,
  5650.         ...)
  5651. {
  5652.    va_list ap;
  5653.    va_start(ap, methodId);
  5654.       boolean __somResult = 
  5655.       (boolean) SOM_ResolveD(this,HICaption,SOMObject,somDispatch)
  5656.     (this,retValue,methodId,ap);
  5657.    va_end(ap);
  5658.    return __somResult;
  5659. }
  5660.  
  5661. /* va_list method: somClassDispatch */
  5662. /* the va_list invocation form */
  5663. boolean   HICaption_somClassDispatch(SOMClass* clsObj,
  5664.         somToken* retValue,
  5665.         somId methodId,
  5666.         va_list ap)
  5667. {
  5668.    return SOM_ResolveD(this,HICaption,SOMObject,somClassDispatch)
  5669.     (this,clsObj,retValue,methodId,ap);
  5670. }
  5671.  
  5672. /* the varargs invocation form */
  5673. boolean   somClassDispatch(SOMClass* clsObj,
  5674.         somToken* retValue,
  5675.         somId methodId,
  5676.         ...)
  5677. {
  5678.    va_list ap;
  5679.    va_start(ap, methodId);
  5680.       boolean __somResult = 
  5681.       (boolean) SOM_ResolveD(this,HICaption,SOMObject,somClassDispatch)
  5682.     (this,clsObj,retValue,methodId,ap);
  5683.    va_end(ap);
  5684.    return __somResult;
  5685. }
  5686.  
  5687. /* method: somCastObj */
  5688. boolean   somCastObj(SOMClass* cls)
  5689. {
  5690.    return SOM_ResolveD(this,HICaption,SOMObject,somCastObj)
  5691.     (this,cls);
  5692. }
  5693.  
  5694. /* method: somResetObj */
  5695. boolean   somResetObj()
  5696. {
  5697.    return SOM_ResolveD(this,HICaption,SOMObject,somResetObj)
  5698.     (this);
  5699. }
  5700.  
  5701. /* method: somPrintSelf */
  5702. SOMObject*   somPrintSelf()
  5703. {
  5704.    return SOM_ResolveD(this,HICaption,SOMObject,somPrintSelf)
  5705.     (this);
  5706. }
  5707.  
  5708. /* method: somDumpSelf */
  5709. void   somDumpSelf(long level)
  5710. {
  5711.    SOM_ResolveD(this,HICaption,SOMObject,somDumpSelf)
  5712.     (this,level);
  5713. }
  5714.  
  5715. /* method: somDumpSelfInt */
  5716. void   somDumpSelfInt(long level)
  5717. {
  5718.    SOM_ResolveD(this,HICaption,SOMObject,somDumpSelfInt)
  5719.     (this,level);
  5720. }
  5721.  
  5722. };   /* HICaption */
  5723.  
  5724.  
  5725.  
  5726. #endif       /* SOM_HICaption_xh */
  5727.